public static class Druids.SelectQueryBuilder extends Object
SelectQuery query = new SelectQueryBuilder()
.dataSource("Example")
.interval("2010/2013")
.build();
SelectQuery
Constructor and Description |
---|
Druids.SelectQueryBuilder() |
Modifier and Type | Method and Description |
---|---|
SelectQuery |
build() |
Druids.SelectQueryBuilder |
context(Map<String,Object> c) |
Druids.SelectQueryBuilder |
copy(Druids.SelectQueryBuilder builder) |
Druids.SelectQueryBuilder |
dataSource(DataSource ds) |
Druids.SelectQueryBuilder |
dataSource(String ds) |
Druids.SelectQueryBuilder |
dimensions(List<String> d) |
Druids.SelectQueryBuilder |
filters(DimFilter f) |
Druids.SelectQueryBuilder |
filters(String dimensionName,
String value) |
Druids.SelectQueryBuilder |
filters(String dimensionName,
String value,
String... values) |
Druids.SelectQueryBuilder |
granularity(QueryGranularity g) |
Druids.SelectQueryBuilder |
granularity(String g) |
Druids.SelectQueryBuilder |
intervals(List<org.joda.time.Interval> l) |
Druids.SelectQueryBuilder |
intervals(QuerySegmentSpec q) |
Druids.SelectQueryBuilder |
intervals(String s) |
Druids.SelectQueryBuilder |
metrics(List<String> m) |
Druids.SelectQueryBuilder |
pagingSpec(PagingSpec p) |
public SelectQuery build()
public Druids.SelectQueryBuilder copy(Druids.SelectQueryBuilder builder)
public Druids.SelectQueryBuilder dataSource(String ds)
public Druids.SelectQueryBuilder dataSource(DataSource ds)
public Druids.SelectQueryBuilder intervals(QuerySegmentSpec q)
public Druids.SelectQueryBuilder intervals(String s)
public Druids.SelectQueryBuilder intervals(List<org.joda.time.Interval> l)
public Druids.SelectQueryBuilder context(Map<String,Object> c)
public Druids.SelectQueryBuilder filters(String dimensionName, String value)
public Druids.SelectQueryBuilder filters(String dimensionName, String value, String... values)
public Druids.SelectQueryBuilder filters(DimFilter f)
public Druids.SelectQueryBuilder granularity(String g)
public Druids.SelectQueryBuilder granularity(QueryGranularity g)
public Druids.SelectQueryBuilder dimensions(List<String> d)
public Druids.SelectQueryBuilder metrics(List<String> m)
public Druids.SelectQueryBuilder pagingSpec(PagingSpec p)
Copyright © 2011–2015. All rights reserved.