Package org.apache.druid.query.groupby
Class DefaultGroupByQueryMetrics
- java.lang.Object
-
- org.apache.druid.query.DefaultQueryMetrics<GroupByQuery>
-
- org.apache.druid.query.groupby.DefaultGroupByQueryMetrics
-
- All Implemented Interfaces:
GroupByQueryMetrics,QueryMetrics<GroupByQuery>
public class DefaultGroupByQueryMetrics extends DefaultQueryMetrics<GroupByQuery> implements GroupByQueryMetrics
-
-
Field Summary
-
Fields inherited from class org.apache.druid.query.DefaultQueryMetrics
builder, metrics, ownerThread
-
-
Constructor Summary
Constructors Constructor Description DefaultGroupByQueryMetrics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgranularity(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.voidquery(GroupByQuery query)Pulls all information from the query object into dimensions of future metrics.-
Methods inherited from class org.apache.druid.query.DefaultQueryMetrics
checkModifiedFromOwnerThread, context, dataSource, duration, emit, hasFilters, identity, interval, makeBitmapResultFactory, parallelMergeParallelism, queryId, queryId, queryType, remoteAddress, reportBackPressureTime, reportBitmapConstructionTime, reportCpuTime, reportMetric, reportNodeBytes, reportNodeTime, reportNodeTimeToFirstByte, reportParallelMergeFastestPartitionTime, reportParallelMergeInputRows, reportParallelMergeInputSequences, reportParallelMergeOutputRows, reportParallelMergeParallelism, reportParallelMergeSlowestPartitionTime, reportParallelMergeTaskCount, reportParallelMergeTotalCpuTime, reportParallelMergeTotalTime, reportPreFilteredRows, reportQueriedSegmentCount, reportQueryBytes, reportQueryTime, reportSegmentAndCacheTime, reportSegmentRows, reportSegmentTime, reportWaitTime, segment, server, setDimension, sqlQueryId, sqlQueryId, status, subQueryId, success, vectorized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.query.QueryMetrics
context, dataSource, duration, emit, filterBundle, hasFilters, identity, interval, makeBitmapResultFactory, parallelMergeParallelism, postFilters, preFilters, queryId, queryId, queryType, remoteAddress, reportBackPressureTime, reportBitmapConstructionTime, reportCpuTime, reportNodeBytes, reportNodeTime, reportNodeTimeToFirstByte, reportParallelMergeFastestPartitionTime, reportParallelMergeInputRows, reportParallelMergeInputSequences, reportParallelMergeOutputRows, reportParallelMergeParallelism, reportParallelMergeSlowestPartitionTime, reportParallelMergeTaskCount, reportParallelMergeTotalCpuTime, reportParallelMergeTotalTime, reportPreFilteredRows, reportQueriedSegmentCount, reportQueryBytes, reportQueryTime, reportSegmentAndCacheTime, reportSegmentRows, reportSegmentTime, reportWaitTime, segment, server, sqlQueryId, sqlQueryId, status, subQueryId, success, vectorized
-
-
-
-
Method Detail
-
query
public void query(GroupByQuery query)
Description copied from interface:QueryMetricsPulls all information from the query object into dimensions of future metrics.- Specified by:
queryin interfaceQueryMetrics<GroupByQuery>- Overrides:
queryin classDefaultQueryMetrics<GroupByQuery>
-
numDimensions
public void numDimensions(GroupByQuery query)
Description copied from interface:GroupByQueryMetricsSets the size ofGroupByQuery.getDimensions()of the given query as dimension.- Specified by:
numDimensionsin interfaceGroupByQueryMetrics
-
numMetrics
public void numMetrics(GroupByQuery query)
Description copied from interface:GroupByQueryMetricsSets the number of metrics of the given groupBy query as dimension.- Specified by:
numMetricsin interfaceGroupByQueryMetrics
-
numComplexMetrics
public void numComplexMetrics(GroupByQuery query)
Description copied from interface:GroupByQueryMetricsSets 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.- Specified by:
numComplexMetricsin interfaceGroupByQueryMetrics
-
granularity
public void granularity(GroupByQuery query)
Description copied from interface:GroupByQueryMetricsSets the granularity ofBaseQuery.getGranularity()of the given query as dimension.- Specified by:
granularityin interfaceGroupByQueryMetrics
-
-