public class TopNQueryBuilder extends Object
TopNQuery query = new TopNQueryBuilder()
.dataSource("Example")
.dimension("example_dim")
.metric("example_metric")
.threshold(100)
.intervals("2012-01-01/2012-01-02")
.build();
TopNQuery
Constructor and Description |
---|
TopNQueryBuilder() |
public DataSource getDataSource()
public DimensionSpec getDimensionSpec()
public TopNMetricSpec getTopNMetricSpec()
public int getThreshold()
public QuerySegmentSpec getQuerySegmentSpec()
public DimFilter getDimFilter()
public QueryGranularity getGranularity()
public List<AggregatorFactory> getAggregatorSpecs()
public List<PostAggregator> getPostAggregatorSpecs()
public TopNQuery build()
public TopNQueryBuilder copy(TopNQuery query)
public TopNQueryBuilder copy(TopNQueryBuilder builder)
public TopNQueryBuilder dataSource(String d)
public TopNQueryBuilder dataSource(DataSource d)
public TopNQueryBuilder dimension(String d)
public TopNQueryBuilder dimension(String d, String outputName)
public TopNQueryBuilder dimension(DimensionSpec d)
public TopNQueryBuilder metric(String s)
public TopNQueryBuilder metric(TopNMetricSpec t)
public TopNQueryBuilder threshold(int i)
public TopNQueryBuilder intervals(QuerySegmentSpec q)
public TopNQueryBuilder intervals(String s)
public TopNQueryBuilder intervals(List<org.joda.time.Interval> l)
public TopNQueryBuilder filters(String dimensionName, String value)
public TopNQueryBuilder filters(String dimensionName, String value, String... values)
public TopNQueryBuilder filters(DimFilter f)
public TopNQueryBuilder granularity(String g)
public TopNQueryBuilder granularity(QueryGranularity g)
public TopNQueryBuilder aggregators(List<AggregatorFactory> a)
public TopNQueryBuilder postAggregators(List<PostAggregator> p)
public TopNQueryBuilder context(Map<String,Object> c)
Copyright © 2011–2015. All rights reserved.