public class DefaultTopNQueryMetrics extends DefaultQueryMetrics<TopNQuery> implements TopNQueryMetrics
builder, jsonMapper, metrics, ownerThread| Constructor and Description | 
|---|
DefaultTopNQueryMetrics(com.fasterxml.jackson.databind.ObjectMapper jsonMapper)  | 
| Modifier and Type | Method and Description | 
|---|---|
TopNQueryMetrics | 
addProcessedRows(long numRows)
Called with the number of rows, processed via each cursor, processed for the query within the segment. 
 | 
void | 
algorithm(TopNAlgorithm algorithm)  | 
void | 
columnValueSelector(ColumnValueSelector columnValueSelector)
This method is called exactly once with the columnValueSelector object of each cursor, processed for the query. 
 | 
void | 
cursor(Cursor cursor)
This method is called exactly once with each cursor, processed for the query. 
 | 
void | 
dimension(TopNQuery query)
Sets  
TopNQuery.getDimensionSpec().getDimension() of the given query as dimension. | 
void | 
dimensionCardinality(int cardinality)  | 
void | 
granularity(TopNQuery query)
Sets the granularity of  
BaseQuery.getGranularity() of the given query as dimension. | 
void | 
numComplexMetrics(TopNQuery query)
Sets the number of "complex" metrics of the given topN query as dimension. 
 | 
void | 
numMetrics(TopNQuery query)
Sets the number of metrics of the given topN query as dimension. 
 | 
void | 
numValuesPerPass(TopNParams params)
This method may set  
TopNParams.getNumValuesPerPass() of the query as dimension. | 
void | 
query(TopNQuery query)
Pulls all information from the query object into dimensions of future metrics. 
 | 
void | 
startRecordingScanTime()
Calls to this method and  
TopNQueryMetrics.stopRecordingScanTime() wrap scanning of each cursor, processed for the
 query. | 
TopNQueryMetrics | 
stopRecordingScanTime()
Calls of  
TopNQueryMetrics.startRecordingScanTime() and this method wrap scanning of each cursor, processed for the query. | 
void | 
threshold(TopNQuery query)
Sets  
TopNQuery.getThreshold() of the given query as dimension. | 
checkModifiedFromOwnerThread, chunkInterval, context, dataSource, duration, emit, hasFilters, identity, interval, makeBitmapResultFactory, postFilters, preFilters, queryId, queryType, remoteAddress, reportBitmapConstructionTime, reportCpuTime, reportIntervalChunkTime, reportMetric, reportNodeBytes, reportNodeTime, reportNodeTimeToFirstByte, reportPreFilteredRows, reportQueryBytes, reportQueryTime, reportSegmentAndCacheTime, reportSegmentRows, reportSegmentTime, reportWaitTime, segment, server, setDimension, status, successclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchunkInterval, context, dataSource, duration, emit, hasFilters, identity, interval, makeBitmapResultFactory, postFilters, preFilters, queryId, queryType, remoteAddress, reportBitmapConstructionTime, reportCpuTime, reportIntervalChunkTime, reportNodeBytes, reportNodeTime, reportNodeTimeToFirstByte, reportPreFilteredRows, reportQueryBytes, reportQueryTime, reportSegmentAndCacheTime, reportSegmentRows, reportSegmentTime, reportWaitTime, segment, server, status, successpublic DefaultTopNQueryMetrics(com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
public void query(TopNQuery query)
QueryMetricsquery in interface QueryMetrics<TopNQuery>query in class DefaultQueryMetrics<TopNQuery>public void threshold(TopNQuery query)
TopNQueryMetricsTopNQuery.getThreshold() of the given query as dimension.threshold in interface TopNQueryMetricspublic void dimension(TopNQuery query)
TopNQueryMetricsTopNQuery.getDimensionSpec().getDimension() of the given query as dimension.dimension in interface TopNQueryMetricspublic void numMetrics(TopNQuery query)
TopNQueryMetricsnumMetrics in interface TopNQueryMetricspublic void numComplexMetrics(TopNQuery query)
TopNQueryMetricsnumComplexMetrics in interface TopNQueryMetricspublic void granularity(TopNQuery query)
TopNQueryMetricsBaseQuery.getGranularity() of the given query as dimension.granularity in interface TopNQueryMetricspublic void dimensionCardinality(int cardinality)
dimensionCardinality in interface TopNQueryMetricspublic void algorithm(TopNAlgorithm algorithm)
algorithm in interface TopNQueryMetricspublic void cursor(Cursor cursor)
TopNQueryMetricscursor in interface TopNQueryMetricspublic void columnValueSelector(ColumnValueSelector columnValueSelector)
TopNQueryMetricscolumnValueSelector in interface TopNQueryMetricspublic void numValuesPerPass(TopNParams params)
TopNQueryMetricsTopNParams.getNumValuesPerPass() of the query as dimension.numValuesPerPass in interface TopNQueryMetricspublic TopNQueryMetrics addProcessedRows(long numRows)
TopNQueryMetricsQueryMetrics.reportPreFilteredRows(long), because QueryMetrics.postFilters(java.util.List<io.druid.query.filter.Filter>) are additionally applied. If there
 are no postFilters, preFilteredRows and processedRows are equal.addProcessedRows in interface TopNQueryMetricspublic void startRecordingScanTime()
TopNQueryMetricsTopNQueryMetrics.stopRecordingScanTime() wrap scanning of each cursor, processed for the
 query.startRecordingScanTime in interface TopNQueryMetricspublic TopNQueryMetrics stopRecordingScanTime()
TopNQueryMetricsTopNQueryMetrics.startRecordingScanTime() and this method wrap scanning of each cursor, processed for the query.stopRecordingScanTime in interface TopNQueryMetricsCopyright © 2011–2018. All rights reserved.