use of org.apache.carbondata.core.stats.QueryStatistic in project carbondata by apache.
the class AbstractRecordReader method logStatistics.
/**
* This method will log query result count and querytime
* @param recordCount
* @param recorder
*/
public void logStatistics(int recordCount, QueryStatisticsRecorder recorder) {
// result size
QueryStatistic queryStatistic = new QueryStatistic();
queryStatistic.addCountStatistic(QueryStatisticsConstants.RESULT_SIZE, recordCount);
recorder.recordStatistics(queryStatistic);
// print executor query statistics for each task_id
recorder.logStatisticsAsTableExecutor();
}
Aggregations