Package org.apache.druid.query.groupby
Interface GroupByQueryMetrics
- All Superinterfaces:
QueryMetrics<GroupByQuery>
- All Known Implementing Classes:
DefaultGroupByQueryMetrics
Specialization of
QueryMetrics for GroupByQuery.-
Method Summary
Modifier and TypeMethodDescriptionvoidgranularity(GroupByQuery query) Sets the granularity ofBaseQuery.getGranularity()of the given query as dimension.voidnumComplexMetrics(GroupByQuery query) Sets the number of "complex" metrics of the given groupBy query as dimension.voidnumDimensions(GroupByQuery query) Sets the size ofGroupByQuery.getDimensions()of the given query as dimension.voidnumMetrics(GroupByQuery query) Sets the number of metrics of the given groupBy query as dimension.Methods inherited from interface org.apache.druid.query.QueryMetrics
context, dataSource, duration, emit, filterBundle, hasFilters, identity, interval, makeBitmapResultFactory, parallelMergeParallelism, postFilters, preFilters, projection, query, queryId, queryId, queryType, remoteAddress, reportBackPressureTime, reportBitmapConstructionTime, reportCpuTime, reportNodeBytes, reportNodeTime, reportNodeTimeToFirstByte, reportParallelMergeFastestPartitionTime, reportParallelMergeInputRows, reportParallelMergeInputSequences, reportParallelMergeOutputRows, reportParallelMergeParallelism, reportParallelMergeSlowestPartitionTime, reportParallelMergeTaskCount, reportParallelMergeTotalCpuTime, reportParallelMergeTotalTime, reportPreFilteredRows, reportQueriedSegmentCount, reportQueryBytes, reportQueryTime, reportResultCachePoll, reportSegmentAndCacheTime, reportSegmentOnDemandLoadBytes, reportSegmentOnDemandLoadCount, reportSegmentOnDemandLoadTime, reportSegmentOnDemandLoadTimeAvg, reportSegmentOnDemandLoadTimeMax, reportSegmentOnDemandLoadWaitTimeAvg, reportSegmentOnDemandLoadWaitTimeMax, reportSegmentRows, reportSegmentTime, reportWaitTime, segment, server, sqlQueryId, sqlQueryId, status, statusCode, subQueryId, success, vectorized
-
Method Details
-
numDimensions
Sets the size ofGroupByQuery.getDimensions()of the given query as dimension. -
numMetrics
Sets the number of metrics of the given groupBy query as dimension. -
numComplexMetrics
Sets the number of "complex" metrics of the given groupBy query as dimension. By default it is assumed that "complex" metric is a metric of not long or double type, but it could be redefined in the implementation of this method. -
granularity
Sets the granularity ofBaseQuery.getGranularity()of the given query as dimension.
-