public static class Druids.TimeseriesQueryBuilder extends Object
TimeseriesQuery query = Druids.newTimeseriesQueryBuilder()
.dataSource("Example")
.intervals("2012-01-01/2012-01-02")
.aggregators(listofAggregators)
.build();
TimeseriesQuery
public TimeseriesQuery build()
public Druids.TimeseriesQueryBuilder copy(TimeseriesQuery query)
public Druids.TimeseriesQueryBuilder copy(Druids.TimeseriesQueryBuilder builder)
public DataSource getDataSource()
public QuerySegmentSpec getQuerySegmentSpec()
public DimFilter getDimFilter()
public QueryGranularity getGranularity()
public List<AggregatorFactory> getAggregatorSpecs()
public List<PostAggregator> getPostAggregatorSpecs()
public Druids.TimeseriesQueryBuilder dataSource(String ds)
public Druids.TimeseriesQueryBuilder dataSource(DataSource ds)
public Druids.TimeseriesQueryBuilder intervals(QuerySegmentSpec q)
public Druids.TimeseriesQueryBuilder intervals(String s)
public Druids.TimeseriesQueryBuilder intervals(List<org.joda.time.Interval> l)
public Druids.TimeseriesQueryBuilder filters(String dimensionName, String value)
public Druids.TimeseriesQueryBuilder filters(String dimensionName, String value, String... values)
public Druids.TimeseriesQueryBuilder filters(DimFilter f)
public Druids.TimeseriesQueryBuilder granularity(String g)
public Druids.TimeseriesQueryBuilder granularity(QueryGranularity g)
public Druids.TimeseriesQueryBuilder aggregators(List<AggregatorFactory> a)
public Druids.TimeseriesQueryBuilder postAggregators(List<PostAggregator> p)
public Druids.TimeseriesQueryBuilder context(Map<String,Object> c)
Copyright © 2011–2015. All rights reserved.