Package org.apache.druid.query.select
Class SelectQuery
- java.lang.Object
-
- org.apache.druid.query.select.SelectQuery
-
-
Field Summary
-
Fields 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
Constructors Constructor Description SelectQuery()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Map<String,Object>getContext()Deprecated.Returns the context as an (immutable) map.DataSourcegetDataSource()Deprecated.org.joda.time.DurationgetDuration()Deprecated.DimFiltergetFilter()Deprecated.GranularitygetGranularity()Deprecated.StringgetId()Deprecated.List<org.joda.time.Interval>getIntervals()Deprecated.com.google.common.collect.Ordering<Object>getResultOrdering()Deprecated.Comparator that represents the order in which results are generated from theQueryRunnerFactory.createRunner(Segment)andQueryRunnerFactory.mergeRunners(QueryProcessingPool, Iterable)calls.QueryRunner<Object>getRunner(QuerySegmentWalker walker)Deprecated.StringgetSubQueryId()Deprecated.Returns the subQueryId of this query.org.joda.time.DateTimeZonegetTimezone()Deprecated.StringgetType()Deprecated.booleanhasFilters()Deprecated.Query<Object>withDataSource(DataSource dataSource)Deprecated.Query<Object>withId(String id)Deprecated.Query<Object>withOverriddenContext(Map<String,Object> contextOverride)Deprecated.Query<Object>withQuerySegmentSpec(QuerySegmentSpec spec)Deprecated.Returns a new query, identical to this one, but with a different associatedQuerySegmentSpec.Query<Object>withSubQueryId(String subQueryId)Deprecated.Returns a copy of this query with a new subQueryId (seeQuery.getSubQueryId().-
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.Query
context, getContextBoolean, getContextHumanReadableBytes, getContextValue, getDataSourceAnalysis, getMostSpecificId, getRequiredColumns, getResultRowSignature, getResultRowSignature, getSingleInterval, getSqlQueryId, getVirtualColumns, optimizeForSegment, withDefaultSubQueryId, withLane, withPriority, withSqlQueryId
-
-
-
-
Method Detail
-
getDataSource
public DataSource getDataSource()
Deprecated.- Specified by:
getDataSourcein interfaceQuery<Object>
-
hasFilters
public boolean hasFilters()
Deprecated.- Specified by:
hasFiltersin interfaceQuery<Object>
-
getFilter
public DimFilter getFilter()
Deprecated.
-
getRunner
public QueryRunner<Object> getRunner(QuerySegmentWalker walker)
Deprecated.
-
getIntervals
public List<org.joda.time.Interval> getIntervals()
Deprecated.- Specified by:
getIntervalsin interfaceQuery<Object>
-
getDuration
public org.joda.time.Duration getDuration()
Deprecated.- Specified by:
getDurationin interfaceQuery<Object>
-
getGranularity
public Granularity getGranularity()
Deprecated.- Specified by:
getGranularityin interfaceQuery<Object>
-
getTimezone
public org.joda.time.DateTimeZone getTimezone()
Deprecated.- Specified by:
getTimezonein interfaceQuery<Object>
-
getContext
public Map<String,Object> getContext()
Deprecated.Description copied from interface:QueryReturns the context as an (immutable) map.- Specified by:
getContextin interfaceQuery<Object>
-
getResultOrdering
public com.google.common.collect.Ordering<Object> getResultOrdering()
Deprecated.Description copied from interface:QueryComparator that represents the order in which results are generated from theQueryRunnerFactory.createRunner(Segment)andQueryRunnerFactory.mergeRunners(QueryProcessingPool, Iterable)calls. This is used to combine streams of results from different sources; for example, it's used by historicals to combine streams from different segments, and it's used by the broker to combine streams from different historicals.Important note: sometimes, this ordering is used in a type-unsafe way to order @{code Result
} objects. Because of this, implementations should fall back to Ordering.natural()when they are given an object that is not of type T.- Specified by:
getResultOrderingin interfaceQuery<Object>
-
withOverriddenContext
public Query<Object> withOverriddenContext(Map<String,Object> contextOverride)
Deprecated.- Specified by:
withOverriddenContextin interfaceQuery<Object>
-
withQuerySegmentSpec
public Query<Object> withQuerySegmentSpec(QuerySegmentSpec spec)
Deprecated.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).- Specified by:
withQuerySegmentSpecin interfaceQuery<Object>
-
withSubQueryId
public Query<Object> withSubQueryId(String subQueryId)
Deprecated.Description copied from interface:QueryReturns a copy of this query with a new subQueryId (seeQuery.getSubQueryId().- Specified by:
withSubQueryIdin interfaceQuery<Object>
-
getSubQueryId
@Nullable public String getSubQueryId()
Deprecated.Description copied from interface:QueryReturns the subQueryId of this query. This is set by ClientQuerySegmentWalker (the entry point for the Broker's query stack) on any subqueries that it issues. It is null for the main query.- Specified by:
getSubQueryIdin interfaceQuery<Object>
-
withDataSource
public Query<Object> withDataSource(DataSource dataSource)
Deprecated.- Specified by:
withDataSourcein interfaceQuery<Object>
-
-