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 void
granularity(GroupByQuery query)
Sets the granularity ofBaseQuery.getGranularity()
of the given query as dimension.void
numComplexMetrics(GroupByQuery query)
Sets the number of "complex" metrics of the given groupBy query as dimension.void
numDimensions(GroupByQuery query)
Sets the size ofGroupByQuery.getDimensions()
of the given query as dimension.void
numMetrics(GroupByQuery query)
Sets the number of metrics of the given groupBy query as dimension.void
query(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, postFilters, preFilters, 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, 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:QueryMetrics
Pulls all information from the query object into dimensions of future metrics.- Specified by:
query
in interfaceQueryMetrics<GroupByQuery>
- Overrides:
query
in classDefaultQueryMetrics<GroupByQuery>
-
numDimensions
public void numDimensions(GroupByQuery query)
Description copied from interface:GroupByQueryMetrics
Sets the size ofGroupByQuery.getDimensions()
of the given query as dimension.- Specified by:
numDimensions
in interfaceGroupByQueryMetrics
-
numMetrics
public void numMetrics(GroupByQuery query)
Description copied from interface:GroupByQueryMetrics
Sets the number of metrics of the given groupBy query as dimension.- Specified by:
numMetrics
in interfaceGroupByQueryMetrics
-
numComplexMetrics
public void numComplexMetrics(GroupByQuery query)
Description copied from interface:GroupByQueryMetrics
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.- Specified by:
numComplexMetrics
in interfaceGroupByQueryMetrics
-
granularity
public void granularity(GroupByQuery query)
Description copied from interface:GroupByQueryMetrics
Sets the granularity ofBaseQuery.getGranularity()
of the given query as dimension.- Specified by:
granularity
in interfaceGroupByQueryMetrics
-
-