public abstract class BaseQuery<T extends Comparable<T>> extends Object implements Query<T>
Modifier and Type | Field and Description |
---|---|
static String |
QUERYID |
DATASOURCE_METADATA, GROUP_BY, SCAN, SEARCH, SEGMENT_METADATA, SELECT, TIME_BOUNDARY, TIMESERIES, TOPN
Constructor and Description |
---|
BaseQuery(DataSource dataSource,
QuerySegmentSpec querySegmentSpec,
boolean descending,
Map<String,Object> context) |
BaseQuery(DataSource dataSource,
QuerySegmentSpec querySegmentSpec,
boolean descending,
Map<String,Object> context,
Granularity granularity) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getFilter, getType, hasFilters, withDataSource, withOverriddenContext, withQuerySegmentSpec
public static final String QUERYID
public BaseQuery(DataSource dataSource, QuerySegmentSpec querySegmentSpec, boolean descending, Map<String,Object> context)
public BaseQuery(DataSource dataSource, QuerySegmentSpec querySegmentSpec, boolean descending, Map<String,Object> context, Granularity granularity)
public static void checkInterrupted()
public DataSource getDataSource()
getDataSource
in interface Query<T extends Comparable<T>>
public boolean isDescending()
isDescending
in interface Query<T extends Comparable<T>>
public QuerySegmentSpec getQuerySegmentSpec()
public QueryRunner<T> getRunner(QuerySegmentWalker walker)
getRunner
in interface Query<T extends Comparable<T>>
public List<org.joda.time.Interval> getIntervals()
getIntervals
in interface Query<T extends Comparable<T>>
public org.joda.time.Duration getDuration()
getDuration
in interface Query<T extends Comparable<T>>
public Granularity getGranularity()
getGranularity
in interface Query<T extends Comparable<T>>
public org.joda.time.DateTimeZone getTimezone()
getTimezone
in interface Query<T extends Comparable<T>>
public Map<String,Object> getContext()
getContext
in interface Query<T extends Comparable<T>>
public <ContextType> ContextType getContextValue(String key)
getContextValue
in interface Query<T extends Comparable<T>>
public <ContextType> ContextType getContextValue(String key, ContextType defaultValue)
getContextValue
in interface Query<T extends Comparable<T>>
public boolean getContextBoolean(String key, boolean defaultValue)
getContextBoolean
in interface Query<T extends Comparable<T>>
@Deprecated protected Map<String,Object> computeOverridenContext(Map<String,Object> overrides)
computeOverriddenContext(getContext(), overrides))
instead. This method may be removed in the next minor or major version of Druid.protected static Map<String,Object> computeOverriddenContext(Map<String,Object> context, Map<String,Object> overrides)
public com.google.common.collect.Ordering<T> getResultOrdering()
getResultOrdering
in interface Query<T extends Comparable<T>>
public Query withId(String id)
withId
in interface Query<T extends Comparable<T>>
Copyright © 2011–2018. All rights reserved.