public class TopNQuery extends BaseQuery<Result<TopNResultValue>>
Modifier and Type | Field and Description |
---|---|
static String |
TOPN |
DATASOURCE_METADATA, GROUP_BY, SEARCH, SEGMENT_METADATA, SELECT, TIME_BOUNDARY, TIMESERIES
Constructor and Description |
---|
TopNQuery(DataSource dataSource,
DimensionSpec dimensionSpec,
TopNMetricSpec topNMetricSpec,
int threshold,
QuerySegmentSpec querySegmentSpec,
DimFilter dimFilter,
QueryGranularity granularity,
List<AggregatorFactory> aggregatorSpecs,
List<PostAggregator> postAggregatorSpecs,
Map<String,Object> context) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<AggregatorFactory> |
getAggregatorSpecs() |
DimFilter |
getDimensionsFilter() |
DimensionSpec |
getDimensionSpec() |
QueryGranularity |
getGranularity() |
List<PostAggregator> |
getPostAggregatorSpecs() |
int |
getThreshold() |
TopNMetricSpec |
getTopNMetricSpec() |
String |
getType() |
boolean |
hasFilters() |
int |
hashCode() |
void |
initTopNAlgorithmSelector(TopNAlgorithmSelector selector) |
String |
toString() |
Query<Result<TopNResultValue>> |
withDataSource(DataSource dataSource) |
TopNQuery |
withDimensionSpec(DimensionSpec spec) |
TopNQuery |
withOverriddenContext(Map<String,Object> contextOverrides) |
TopNQuery |
withPostAggregatorSpecs(List<PostAggregator> postAggregatorSpecs) |
TopNQuery |
withQuerySegmentSpec(QuerySegmentSpec querySegmentSpec) |
TopNQuery |
withThreshold(int threshold) |
computeOverridenContext, getContext, getContextBySegment, getContextFinalize, getContextPopulateCache, getContextPriority, getContextUseCache, getContextValue, getContextValue, getDataSource, getDuration, getId, getIntervals, getQuerySegmentSpec, run, run, withId
public static final String TOPN
public TopNQuery(DataSource dataSource, DimensionSpec dimensionSpec, TopNMetricSpec topNMetricSpec, int threshold, QuerySegmentSpec querySegmentSpec, DimFilter dimFilter, QueryGranularity granularity, List<AggregatorFactory> aggregatorSpecs, List<PostAggregator> postAggregatorSpecs, Map<String,Object> context)
public boolean hasFilters()
public String getType()
public DimensionSpec getDimensionSpec()
public TopNMetricSpec getTopNMetricSpec()
public int getThreshold()
public DimFilter getDimensionsFilter()
public QueryGranularity getGranularity()
public List<AggregatorFactory> getAggregatorSpecs()
public List<PostAggregator> getPostAggregatorSpecs()
public void initTopNAlgorithmSelector(TopNAlgorithmSelector selector)
public TopNQuery withQuerySegmentSpec(QuerySegmentSpec querySegmentSpec)
public TopNQuery withDimensionSpec(DimensionSpec spec)
public TopNQuery withPostAggregatorSpecs(List<PostAggregator> postAggregatorSpecs)
public Query<Result<TopNResultValue>> withDataSource(DataSource dataSource)
public TopNQuery withThreshold(int threshold)
public boolean equals(Object o)
equals
in class BaseQuery<Result<TopNResultValue>>
public int hashCode()
hashCode
in class BaseQuery<Result<TopNResultValue>>
Copyright © 2011–2015. All rights reserved.