DATASOURCE_METADATA, GROUP_BY, SCAN, SEARCH, SEGMENT_METADATA, SELECT, TIME_BOUNDARY, TIMESERIES, TOPN, WINDOW_OPERATOR| Constructor and Description |
|---|
SelectQuery()
Deprecated.
|
| Modifier and Type | Method and 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 the
QueryRunnerFactory.createRunner(Segment) and
QueryRunnerFactory.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 associated
QuerySegmentSpec. |
Query<Object> |
withSubQueryId(String subQueryId)
Deprecated.
Returns a copy of this query with a new subQueryId (see
Query.getSubQueryId(). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontext, getContextBoolean, getContextHumanReadableBytes, getContextValue, getMostSpecificId, getRequiredColumns, getSqlQueryId, getVirtualColumns, optimizeForSegment, withDefaultSubQueryId, withLane, withPriority, withSqlQueryIdpublic DataSource getDataSource()
getDataSource in interface Query<Object>public boolean hasFilters()
hasFilters in interface Query<Object>public DimFilter getFilter()
public QueryRunner<Object> getRunner(QuerySegmentWalker walker)
public List<org.joda.time.Interval> getIntervals()
getIntervals in interface Query<Object>public org.joda.time.Duration getDuration()
getDuration in interface Query<Object>public Granularity getGranularity()
getGranularity in interface Query<Object>public org.joda.time.DateTimeZone getTimezone()
getTimezone in interface Query<Object>public Map<String,Object> getContext()
QuerygetContext in interface Query<Object>public boolean isDescending()
isDescending in interface Query<Object>public com.google.common.collect.Ordering<Object> getResultOrdering()
QueryQueryRunnerFactory.createRunner(Segment) and
QueryRunnerFactory.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 ResultOrdering.natural() when they are given an
object that is not of type T.getResultOrdering in interface Query<Object>public Query<Object> withOverriddenContext(Map<String,Object> contextOverride)
withOverriddenContext in interface Query<Object>public Query<Object> 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).withQuerySegmentSpec in interface Query<Object>public Query<Object> withSubQueryId(String subQueryId)
QueryQuery.getSubQueryId().withSubQueryId in interface Query<Object>@Nullable public String getSubQueryId()
QuerygetSubQueryId in interface Query<Object>public Query<Object> withDataSource(DataSource dataSource)
withDataSource in interface Query<Object>Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.