DATASOURCE_METADATA, GROUP_BY, SCAN, SEARCH, SEGMENT_METADATA, SELECT, TIME_BOUNDARY, TIMESERIES, TOPN
Constructor and Description |
---|
SelectQuery()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getContext()
Deprecated.
|
boolean |
getContextBoolean(String key,
boolean defaultValue)
Deprecated.
|
<ContextType> |
getContextValue(String key)
Deprecated.
|
<ContextType> |
getContextValue(String key,
ContextType defaultValue)
Deprecated.
|
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(ExecutorService, 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, wait
getMostSpecificId, getSqlQueryId, getVirtualColumns, optimizeForSegment, withDefaultSubQueryId, withLane, withPriority, withSqlQueryId
public 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()
getContext
in interface Query<Object>
public <ContextType> ContextType getContextValue(String key)
getContextValue
in interface Query<Object>
public <ContextType> ContextType getContextValue(String key, ContextType defaultValue)
getContextValue
in interface Query<Object>
public boolean getContextBoolean(String key, boolean defaultValue)
getContextBoolean
in interface Query<Object>
public boolean isDescending()
isDescending
in interface Query<Object>
public com.google.common.collect.Ordering<Object> getResultOrdering()
Query
QueryRunnerFactory.createRunner(Segment)
and
QueryRunnerFactory.mergeRunners(ExecutorService, 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)
Query
QuerySegmentSpec
.
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)
Query
Query.getSubQueryId()
.withSubQueryId
in interface Query<Object>
@Nullable public String getSubQueryId()
Query
getSubQueryId
in interface Query<Object>
public Query<Object> withDataSource(DataSource dataSource)
withDataSource
in interface Query<Object>
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.