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, QUERY_RESULT_CACHE_HIT, QUERY_SEGMENT_AND_CACHE_TIME, QUERY_SEGMENT_TIME, QUERY_WAIT_TIME -
Constructor Summary
Constructors -
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.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, getIntervalsAsStringArray, getTableNamesAsString, hasFilters, identity, interval, makeBitmapResultFactory, parallelMergeParallelism, projection, queryId, queryId, queryType, remoteAddress, reportBackPressureTime, reportBitmapConstructionTime, reportCpuTime, reportMetric, reportNodeBytes, reportNodeTime, reportNodeTimeToFirstByte, reportParallelMergeFastestPartitionTime, reportParallelMergeInputRows, reportParallelMergeInputSequences, reportParallelMergeOutputRows, reportParallelMergeParallelism, reportParallelMergeSlowestPartitionTime, reportParallelMergeTaskCount, reportParallelMergeTotalCpuTime, reportParallelMergeTotalTime, reportPreFilteredRows, reportQueriedSegmentCount, reportQueryBytes, reportQueryTime, reportResultCachePoll, reportSegmentAndCacheTime, reportSegmentRows, reportSegmentTime, reportWaitTime, segment, server, setDimension, sqlQueryId, sqlQueryId, status, statusCode, subQueryId, success, vectorizedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.query.QueryMetrics
context, dataSource, duration, emit, filterBundle, hasFilters, identity, interval, makeBitmapResultFactory, parallelMergeParallelism, postFilters, preFilters, projection, 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, reportSegmentRows, reportSegmentTime, reportWaitTime, segment, server, sqlQueryId, sqlQueryId, status, statusCode, subQueryId, success, vectorized
-
Constructor Details
-
DefaultGroupByQueryMetrics
public DefaultGroupByQueryMetrics()
-
-
Method Details
-
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
Description copied from interface:GroupByQueryMetricsSets the size ofGroupByQuery.getDimensions()of the given query as dimension.- Specified by:
numDimensionsin interfaceGroupByQueryMetrics
-
numMetrics
Description copied from interface:GroupByQueryMetricsSets the number of metrics of the given groupBy query as dimension.- Specified by:
numMetricsin interfaceGroupByQueryMetrics
-
numComplexMetrics
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
Description copied from interface:GroupByQueryMetricsSets the granularity ofBaseQuery.getGranularity()of the given query as dimension.- Specified by:
granularityin interfaceGroupByQueryMetrics
-