Examples of OraOopStatsReports


Examples of org.apache.sqoop.manager.oracle.OraOopUtilities.OraOopStatsReports

          this.timeSpentInNextKeyValueInNanoSeconds / Math.pow(10, 9)));
    }

    if (OraOopUtilities.userWantsOracleSessionStatisticsReports(getDBConf()
        .getConf())) {
      OraOopStatsReports reports =
          OraOopUtilities.stopSessionSnapshot(this.oraOopOraStats);
      this.oraOopOraStats = null;

      LOG.info(String.format("Oracle Statistics Report for OraOop:\n\n%s",
          reports.getPerformanceReport()));

      String fileName =
          String.format("oracle-stats-csv-%d", this.dbInputSplit.getSplitId());
      OraOopUtilities.writeOutputFile(this.getDBConf().getConf(), fileName,
          reports.getCsvReport());

      fileName =
          String.format("oracle-stats-%d", this.dbInputSplit.getSplitId());
      OraOopUtilities.writeOutputFile(this.getDBConf().getConf(), fileName,
          reports.getPerformanceReport());
    }

    super.close();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.