Class SegmentMetadataQuery
java.lang.Object
org.apache.druid.query.BaseQuery<SegmentAnalysis>
org.apache.druid.query.metadata.metadata.SegmentMetadataQuery
- All Implemented Interfaces:
Query<SegmentAnalysis>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.druid.query.BaseQuery
QUERY_ID, SQL_QUERY_ID, SUB_QUERY_IDFields inherited from interface org.apache.druid.query.Query
DATASOURCE_METADATA, GROUP_BY, SCAN, SEARCH, SEGMENT_METADATA, SELECT, TIME_BOUNDARY, TIMESERIES, TOPN, UNION_QUERY, WINDOW_OPERATOR -
Constructor Summary
ConstructorsConstructorDescriptionSegmentMetadataQuery(DataSource dataSource, QuerySegmentSpec querySegmentSpec, ColumnIncluderator toInclude, Boolean merge, Map<String, Object> context, EnumSet<SegmentMetadataQuery.AnalysisType> analysisTypes, Boolean useDefaultInterval, Boolean lenientAggregatorMerge, AggregatorMergeStrategy aggregatorMergeStrategy) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanList<org.joda.time.Interval>getType()booleanbooleaninthashCode()booleanbooleanbooleanbooleanbooleanisMerge()booleantoString()withColumns(ColumnIncluderator includerator) withDataSource(DataSource dataSource) withOverriddenContext(Map<String, Object> contextOverride) Returns a new query, identical to this one, but with a different associatedQuerySegmentSpec.Methods inherited from class org.apache.druid.query.BaseQuery
calculateDuration, checkInterrupted, computeOverriddenContext, computeOverridenContext, context, getContext, getDataSource, getDuration, getGranularity, getId, getQuerySegmentSpec, getResultOrdering, getRunner, getSubQueryId, getTimezone, withId, withSqlQueryId, withSubQueryIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.druid.query.Query
getContextBoolean, getContextHumanReadableBytes, getContextValue, getMostSpecificId, getRequiredColumns, getResultRowSignature, getResultRowSignature, getSingleInterval, getSqlQueryId, getVirtualColumns, mayCollapseQueryDataSource, optimizeForSegment, withDefaultSubQueryId, withLane, withPriority
-
Constructor Details
-
SegmentMetadataQuery
public SegmentMetadataQuery(DataSource dataSource, QuerySegmentSpec querySegmentSpec, ColumnIncluderator toInclude, Boolean merge, Map<String, Object> context, EnumSet<SegmentMetadataQuery.AnalysisType> analysisTypes, Boolean useDefaultInterval, @Deprecated Boolean lenientAggregatorMerge, AggregatorMergeStrategy aggregatorMergeStrategy)
-
-
Method Details
-
getToInclude
-
isMerge
public boolean isMerge() -
isUsingDefaultInterval
public boolean isUsingDefaultInterval() -
hasFilters
public boolean hasFilters() -
getFilter
-
getType
-
getAnalysisTypes
-
getAggregatorMergeStrategy
-
analyzingInterval
public boolean analyzingInterval() -
hasAggregators
public boolean hasAggregators() -
hasProjections
public boolean hasProjections() -
hasTimestampSpec
public boolean hasTimestampSpec() -
hasQueryGranularity
public boolean hasQueryGranularity() -
hasRollup
public boolean hasRollup() -
withOverriddenContext
-
withQuerySegmentSpec
Description copied from interface:QueryReturns a new query, identical to this one, but with a different associatedQuerySegmentSpec.This often changes the behavior of
Query.getRunner(QuerySegmentWalker), since most queries inherit that method fromBaseQuery, which implements it by callingQuerySegmentSpec.lookup(org.apache.druid.query.Query<T>, org.apache.druid.query.QuerySegmentWalker). -
withDataSource
-
withColumns
-
withFinalizedAnalysisTypes
-
getIntervals
- Specified by:
getIntervalsin interfaceQuery<SegmentAnalysis>- Overrides:
getIntervalsin classBaseQuery<SegmentAnalysis>
-
toString
-
equals
- Overrides:
equalsin classBaseQuery<SegmentAnalysis>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseQuery<SegmentAnalysis>
-