@Override public void rowProcessingBegin(AnalysisJob job, RowProcessingMetrics metrics) { final Table table = metrics.getTable(); _progressCounters.put(table, new ProgressCounter()); final StringBuilder sb = new StringBuilder(); sb.append("Starting processing of " + table.getName()); final Query query = metrics.getQuery(); if (query != null) { sb.append('\n'); sb.append(" - Query: "); sb.append(query.toSql()); } final String enableRowCount = System.getProperty(SystemProperties.MONITOR_LOG_ROWCOUNT); if (enableRowCount == null || !enableRowCount.equalsIgnoreCase("false")) { final int expectedRows = metrics.getExpectedRows(); if (expectedRows != -1) { sb.append('\n'); sb.append(" - Expected row count: "); sb.append(expectedRows); } } _executionLogger.log(sb.toString()); _executionLogger.flushLog(); }
@Override public void rowProcessingBegin(final AnalysisJob job, final RowProcessingMetrics metrics) { logger.info("rowProcessingBegin: {}", job.getDatastore().getName()); final int expectedRows = metrics.getExpectedRows(); final Table table = metrics.getTable();
final int expectedRows = rowProcessingMetrics.getExpectedRows(); if (expectedRows == 0) { logger.info("Expected rows of the job was zero. Job will run on a local virtual slave.");