Search in sources :

Example 11 with QueryStatistic

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();
}
Also used : QueryStatistic(org.apache.carbondata.core.stats.QueryStatistic)

Aggregations

QueryStatistic (org.apache.carbondata.core.stats.QueryStatistic)11 AbstractIndex (org.apache.carbondata.core.datastore.block.AbstractIndex)3 DimensionRawColumnChunk (org.apache.carbondata.core.datastore.chunk.impl.DimensionRawColumnChunk)3 MeasureRawColumnChunk (org.apache.carbondata.core.datastore.chunk.impl.MeasureRawColumnChunk)3 BitSet (java.util.BitSet)2 DataRefNode (org.apache.carbondata.core.datastore.DataRefNode)2 DimensionColumnDataChunk (org.apache.carbondata.core.datastore.chunk.DimensionColumnDataChunk)2 MeasureColumnDataChunk (org.apache.carbondata.core.datastore.chunk.MeasureColumnDataChunk)2 BlockletDeleteDeltaCacheLoader (org.apache.carbondata.core.mutate.data.BlockletDeleteDeltaCacheLoader)2 DeleteDeltaCacheLoaderIntf (org.apache.carbondata.core.mutate.data.DeleteDeltaCacheLoaderIntf)2 AbstractScannedResult (org.apache.carbondata.core.scan.result.AbstractScannedResult)2 QueryStatisticsRecorder (org.apache.carbondata.core.stats.QueryStatisticsRecorder)2 ArrayList (java.util.ArrayList)1 LinkedList (java.util.LinkedList)1 CacheProvider (org.apache.carbondata.core.cache.CacheProvider)1 BlockIndexStore (org.apache.carbondata.core.datastore.BlockIndexStore)1 FileHolder (org.apache.carbondata.core.datastore.FileHolder)1 SegmentTaskIndexStore (org.apache.carbondata.core.datastore.SegmentTaskIndexStore)1 TableSegmentUniqueIdentifier (org.apache.carbondata.core.datastore.TableSegmentUniqueIdentifier)1 TableBlockUniqueIdentifier (org.apache.carbondata.core.datastore.block.TableBlockUniqueIdentifier)1