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, 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.DataSource
getDataSource()
Deprecated.org.joda.time.Duration
getDuration()
Deprecated.DimFilter
getFilter()
Deprecated.Granularity
getGranularity()
Deprecated.String
getId()
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.String
getSubQueryId()
Deprecated.Returns the subQueryId of this query.org.joda.time.DateTimeZone
getTimezone()
Deprecated.String
getType()
Deprecated.boolean
hasFilters()
Deprecated.boolean
isDescending()
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, getMostSpecificId, getRequiredColumns, getSqlQueryId, getVirtualColumns, optimizeForSegment, withDefaultSubQueryId, withLane, withPriority, withSqlQueryId
-
-
-
-
Method Detail
-
getDataSource
public DataSource getDataSource()
Deprecated.- Specified by:
getDataSource
in interfaceQuery<Object>
-
hasFilters
public boolean hasFilters()
Deprecated.- Specified by:
hasFilters
in 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:
getIntervals
in interfaceQuery<Object>
-
getDuration
public org.joda.time.Duration getDuration()
Deprecated.- Specified by:
getDuration
in interfaceQuery<Object>
-
getGranularity
public Granularity getGranularity()
Deprecated.- Specified by:
getGranularity
in interfaceQuery<Object>
-
getTimezone
public org.joda.time.DateTimeZone getTimezone()
Deprecated.- Specified by:
getTimezone
in interfaceQuery<Object>
-
getContext
public Map<String,Object> getContext()
Deprecated.Description copied from interface:Query
Returns the context as an (immutable) map.- Specified by:
getContext
in interfaceQuery<Object>
-
isDescending
public boolean isDescending()
Deprecated.- Specified by:
isDescending
in interfaceQuery<Object>
-
getResultOrdering
public com.google.common.collect.Ordering<Object> getResultOrdering()
Deprecated.Description copied from interface:Query
Comparator 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:
getResultOrdering
in interfaceQuery<Object>
-
withOverriddenContext
public Query<Object> withOverriddenContext(Map<String,Object> contextOverride)
Deprecated.- Specified by:
withOverriddenContext
in interfaceQuery<Object>
-
withQuerySegmentSpec
public Query<Object> withQuerySegmentSpec(QuerySegmentSpec spec)
Deprecated.Description copied from interface:Query
Returns a new query, identical to this one, but with a different associatedQuerySegmentSpec
. This often changes the behavior ofQuery.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:
withQuerySegmentSpec
in interfaceQuery<Object>
-
withSubQueryId
public Query<Object> withSubQueryId(String subQueryId)
Deprecated.Description copied from interface:Query
Returns a copy of this query with a new subQueryId (seeQuery.getSubQueryId()
.- Specified by:
withSubQueryId
in interfaceQuery<Object>
-
getSubQueryId
@Nullable public String getSubQueryId()
Deprecated.Description copied from interface:Query
Returns 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:
getSubQueryId
in interfaceQuery<Object>
-
withDataSource
public Query<Object> withDataSource(DataSource dataSource)
Deprecated.- Specified by:
withDataSource
in interfaceQuery<Object>
-
-