Q - Type of DruidAggregationQuery this one extends. This allows the queries to nest their own type.public interface DruidAggregationQuery<Q extends DruidAggregationQuery<? super Q>> extends DruidFactQuery<Q>
| Modifier and Type | Method and Description |
|---|---|
default Stream<Column> |
buildSchemaColumns()
Produce the schema-defining columns for a given druid query.
|
Set<Aggregation> |
getAggregations()
Returns the aggregations of the query.
|
default Set<String> |
getDependentFieldNames()
Retrieves a set of druid metric names associated with the query.
|
Collection<Dimension> |
getDimensions()
Returns the dimensions of the query if any.
|
default DruidAggregationQuery<?> |
getInnermostQuery()
If this structure is part of a query stack, return the lowest element.
|
default Optional<? extends DruidAggregationQuery> |
getInnerQuery()
If this query is nestable, and has a nested query return it.
|
default Set<Dimension> |
getMetricDimensions()
Get all the dimensions from Filtered Aggregations of a filtered metric.
|
Collection<PostAggregation> |
getPostAggregations()
Returns the post-aggregations of the query.
|
Q |
withAggregations(Collection<Aggregation> aggregations)
Returns a copy of this query with the specified aggregations.
|
Q |
withPostAggregations(Collection<PostAggregation> postAggregations)
Returns a copy of this query with the specified post aggregations.
|
getFilter, getGranularity, getIntervals, withAllIntervals, withFilter, withGranularity, withIntervalsgetContext, getDataSource, getQueryType, withContext, withDataSource, withInnermostDataSourcedefault Set<String> getDependentFieldNames()
default Set<Dimension> getMetricDimensions()
Collection<Dimension> getDimensions()
Set<Aggregation> getAggregations()
Collection<PostAggregation> getPostAggregations()
Q withAggregations(Collection<Aggregation> aggregations)
aggregations - the new aggregationsQ withPostAggregations(Collection<PostAggregation> postAggregations)
postAggregations - the new post aggregationsdefault Optional<? extends DruidAggregationQuery> getInnerQuery()
DruidQuerygetInnerQuery in interface DruidFactQuery<Q extends DruidAggregationQuery<? super Q>>getInnerQuery in interface DruidQuery<Q extends DruidAggregationQuery<? super Q>>default DruidAggregationQuery<?> getInnermostQuery()
DruidQuerygetInnermostQuery in interface DruidFactQuery<Q extends DruidAggregationQuery<? super Q>>getInnermostQuery in interface DruidQuery<Q extends DruidAggregationQuery<? super Q>>Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.