Q
- Type of AbstractDruidAggregationQuery this one extends. This allows the queries to nest their own type.public abstract class AbstractDruidAggregationQuery<Q extends AbstractDruidAggregationQuery<? super Q>> extends AbstractDruidFactQuery<Q> implements DruidAggregationQuery<Q>
Modifier and Type | Field and Description |
---|---|
protected Collection<Aggregation> |
aggregations |
protected Collection<Dimension> |
dimensions |
protected Collection<PostAggregation> |
postAggregations |
filter, granularity, intervals
context, dataSource, queryType
Modifier | Constructor and Description |
---|---|
protected |
AbstractDruidAggregationQuery(QueryType queryType,
DataSource dataSource,
Granularity granularity,
Collection<Dimension> dimensions,
Filter filter,
Collection<Aggregation> aggregations,
Collection<PostAggregation> postAggregations,
Collection<org.joda.time.Interval> intervals,
QueryContext context,
boolean doFork)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Set<Aggregation> |
getAggregations()
Returns the aggregations of the query.
|
Collection<Dimension> |
getDimensions()
Returns the dimensions of the query if any.
|
Collection<PostAggregation> |
getPostAggregations()
Returns the post-aggregations of the query.
|
getFilter, getGranularity, getIntervals
getContext, getDataSource, getQueryType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildSchemaColumns, getDependentFieldNames, getInnermostQuery, getInnerQuery, getMetricDimensions, withAggregations, withPostAggregations
getFilter, getGranularity, getIntervals, withAllIntervals, withFilter, withGranularity, withIntervals
getContext, getDataSource, getQueryType, withContext, withDataSource, withInnermostDataSource
protected final Collection<Dimension> dimensions
protected final Collection<Aggregation> aggregations
protected final Collection<PostAggregation> postAggregations
protected AbstractDruidAggregationQuery(QueryType queryType, DataSource dataSource, Granularity granularity, Collection<Dimension> dimensions, Filter filter, Collection<Aggregation> aggregations, Collection<PostAggregation> postAggregations, Collection<org.joda.time.Interval> intervals, QueryContext context, boolean doFork)
queryType
- The type of this querydataSource
- The datasourcegranularity
- The granularitydimensions
- The dimensionsfilter
- The filteraggregations
- The aggregationspostAggregations
- The post-aggregationsintervals
- The intervalscontext
- The contextdoFork
- true to fork a new context and bump up the query id, or false to create an exact copy of the
context.public Collection<Dimension> getDimensions()
DruidAggregationQuery
getDimensions
in interface DruidAggregationQuery<Q extends AbstractDruidAggregationQuery<? super Q>>
public Set<Aggregation> getAggregations()
DruidAggregationQuery
getAggregations
in interface DruidAggregationQuery<Q extends AbstractDruidAggregationQuery<? super Q>>
public Collection<PostAggregation> getPostAggregations()
DruidAggregationQuery
getPostAggregations
in interface DruidAggregationQuery<Q extends AbstractDruidAggregationQuery<? super Q>>
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.