public interface Query<T>
Modifier and Type | Field and Description |
---|---|
static String |
DATASOURCE_METADATA |
static String |
GROUP_BY |
static String |
SEARCH |
static String |
SEGMENT_METADATA |
static String |
SELECT |
static String |
TIME_BOUNDARY |
static String |
TIMESERIES |
static String |
TOPN |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getContext() |
boolean |
getContextBySegment(boolean defaultValue)
Deprecated.
|
boolean |
getContextFinalize(boolean defaultValue)
Deprecated.
|
boolean |
getContextPopulateCache(boolean defaultValue)
Deprecated.
|
int |
getContextPriority(int defaultValue)
Deprecated.
|
boolean |
getContextUseCache(boolean defaultValue)
Deprecated.
|
<ContextType> |
getContextValue(String key) |
<ContextType> |
getContextValue(String key,
ContextType defaultValue) |
DataSource |
getDataSource() |
org.joda.time.Duration |
getDuration() |
String |
getId() |
List<org.joda.time.Interval> |
getIntervals() |
String |
getType() |
boolean |
hasFilters() |
com.metamx.common.guava.Sequence<T> |
run(QueryRunner<T> runner,
Map<String,Object> context) |
com.metamx.common.guava.Sequence<T> |
run(QuerySegmentWalker walker,
Map<String,Object> context) |
Query<T> |
withDataSource(DataSource dataSource) |
Query<T> |
withId(String id) |
Query<T> |
withOverriddenContext(Map<String,Object> contextOverride) |
Query<T> |
withQuerySegmentSpec(QuerySegmentSpec spec) |
static final String TIMESERIES
static final String SEARCH
static final String TIME_BOUNDARY
static final String GROUP_BY
static final String SEGMENT_METADATA
static final String SELECT
static final String TOPN
static final String DATASOURCE_METADATA
DataSource getDataSource()
boolean hasFilters()
String getType()
com.metamx.common.guava.Sequence<T> run(QuerySegmentWalker walker, Map<String,Object> context)
List<org.joda.time.Interval> getIntervals()
org.joda.time.Duration getDuration()
<ContextType> ContextType getContextValue(String key)
<ContextType> ContextType getContextValue(String key, ContextType defaultValue)
@Deprecated int getContextPriority(int defaultValue)
@Deprecated boolean getContextBySegment(boolean defaultValue)
@Deprecated boolean getContextPopulateCache(boolean defaultValue)
@Deprecated boolean getContextUseCache(boolean defaultValue)
@Deprecated boolean getContextFinalize(boolean defaultValue)
Query<T> withQuerySegmentSpec(QuerySegmentSpec spec)
String getId()
Query<T> withDataSource(DataSource dataSource)
Copyright © 2011–2015. All rights reserved.