public interface TopNQueryMetrics extends QueryMetrics<TopNQuery>
QueryMetrics
for TopNQuery
.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 |
startRecordingScanTime()
Calls to this method and
stopRecordingScanTime() wrap scanning of each cursor, processed for the
query. |
TopNQueryMetrics |
stopRecordingScanTime()
Calls of
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. |
chunkInterval, context, dataSource, duration, emit, hasFilters, identity, interval, makeBitmapResultFactory, postFilters, preFilters, query, queryId, queryType, remoteAddress, reportBitmapConstructionTime, reportCpuTime, reportIntervalChunkTime, reportNodeBytes, reportNodeTime, reportNodeTimeToFirstByte, reportPreFilteredRows, reportQueryBytes, reportQueryTime, reportSegmentAndCacheTime, reportSegmentRows, reportSegmentTime, reportWaitTime, segment, server, status, success
void threshold(TopNQuery query)
TopNQuery.getThreshold()
of the given query as dimension.void dimension(TopNQuery query)
TopNQuery.getDimensionSpec()
.getDimension()
of the given query as dimension.void numMetrics(TopNQuery query)
void numComplexMetrics(TopNQuery query)
void granularity(TopNQuery query)
BaseQuery.getGranularity()
of the given query as dimension.void dimensionCardinality(int cardinality)
void algorithm(TopNAlgorithm algorithm)
void cursor(Cursor cursor)
void columnValueSelector(ColumnValueSelector columnValueSelector)
void numValuesPerPass(TopNParams params)
TopNParams.getNumValuesPerPass()
of the query as dimension.TopNQueryMetrics addProcessedRows(long numRows)
QueryMetrics.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.void startRecordingScanTime()
stopRecordingScanTime()
wrap scanning of each cursor, processed for the
query.TopNQueryMetrics stopRecordingScanTime()
startRecordingScanTime()
and this method wrap scanning of each cursor, processed for the query.Copyright © 2011–2018. All rights reserved.