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, intervalscontext, 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, getIntervalsgetContext, getDataSource, getQueryTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildSchemaColumns, getDependentFieldNames, getInnermostQuery, getInnerQuery, getMetricDimensions, withAggregations, withPostAggregationsgetFilter, getGranularity, getIntervals, withAllIntervals, withFilter, withGranularity, withIntervalsgetContext, getDataSource, getQueryType, withContext, withDataSource, withInnermostDataSourceprotected 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()
DruidAggregationQuerygetDimensions in interface DruidAggregationQuery<Q extends AbstractDruidAggregationQuery<? super Q>>public Set<Aggregation> getAggregations()
DruidAggregationQuerygetAggregations in interface DruidAggregationQuery<Q extends AbstractDruidAggregationQuery<? super Q>>public Collection<PostAggregation> getPostAggregations()
DruidAggregationQuerygetPostAggregations in interface DruidAggregationQuery<Q extends AbstractDruidAggregationQuery<? super Q>>Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.