public class SegmentMetadataQuery extends BaseQuery<SegmentAnalysis>
| Modifier and Type | Class and Description |
|---|---|
static class |
SegmentMetadataQuery.AnalysisType |
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
ANALYSIS_TYPES_CACHE_PREFIX
The SegmentMetadataQuery cache key may contain UTF-8 column name strings.
|
QUERY_ID, SQL_QUERY_ID, SUB_QUERY_IDDATASOURCE_METADATA, GROUP_BY, SCAN, SEARCH, SEGMENT_METADATA, SELECT, TIME_BOUNDARY, TIMESERIES, TOPN| Constructor and Description |
|---|
SegmentMetadataQuery(DataSource dataSource,
QuerySegmentSpec querySegmentSpec,
ColumnIncluderator toInclude,
Boolean merge,
Map<String,Object> context,
EnumSet<SegmentMetadataQuery.AnalysisType> analysisTypes,
Boolean useDefaultInterval,
Boolean lenientAggregatorMerge) |
checkInterrupted, computeOverriddenContext, computeOverridenContext, getContext, getContextBoolean, getContextValue, getContextValue, getDataSource, getDuration, getGranularity, getId, getQuerySegmentSpec, getQuerySegmentSpecForLookUp, getResultOrdering, getRunner, getSqlQueryId, getSubQueryId, getTimezone, isDescending, withId, withSqlQueryId, withSubQueryIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMostSpecificId, getVirtualColumns, optimizeForSegment, withDefaultSubQueryId, withLane, withPrioritypublic static final byte[] ANALYSIS_TYPES_CACHE_PREFIX
public SegmentMetadataQuery(DataSource dataSource, QuerySegmentSpec querySegmentSpec, ColumnIncluderator toInclude, Boolean merge, Map<String,Object> context, EnumSet<SegmentMetadataQuery.AnalysisType> analysisTypes, Boolean useDefaultInterval, Boolean lenientAggregatorMerge)
public ColumnIncluderator getToInclude()
public boolean isMerge()
public boolean isUsingDefaultInterval()
public boolean hasFilters()
public DimFilter getFilter()
public String getType()
public EnumSet<SegmentMetadataQuery.AnalysisType> getAnalysisTypes()
public boolean isLenientAggregatorMerge()
public boolean analyzingInterval()
public boolean hasAggregators()
public boolean hasTimestampSpec()
public boolean hasQueryGranularity()
public boolean hasRollup()
public byte[] getAnalysisTypesCacheKey()
public Query<SegmentAnalysis> withOverriddenContext(Map<String,Object> contextOverride)
public Query<SegmentAnalysis> withQuerySegmentSpec(QuerySegmentSpec spec)
QueryQuerySegmentSpec.
This often changes the behavior of Query.getRunner(QuerySegmentWalker), since most queries inherit that method
from BaseQuery, which implements it by calling QuerySegmentSpec.lookup(org.apache.druid.query.Query<T>, org.apache.druid.query.QuerySegmentWalker).public Query<SegmentAnalysis> withDataSource(DataSource dataSource)
public Query<SegmentAnalysis> withColumns(ColumnIncluderator includerator)
public SegmentMetadataQuery withFinalizedAnalysisTypes(SegmentMetadataQueryConfig config)
public List<org.joda.time.Interval> getIntervals()
getIntervals in interface Query<SegmentAnalysis>getIntervals in class BaseQuery<SegmentAnalysis>public boolean equals(Object o)
equals in class BaseQuery<SegmentAnalysis>public int hashCode()
hashCode in class BaseQuery<SegmentAnalysis>Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.