public class TimeSeriesQuery extends AbstractDruidAggregationQuery<TimeSeriesQuery>
aggregations, dimensions, postAggregations
filter, granularity, intervals
context, dataSource, queryType
Constructor and Description |
---|
TimeSeriesQuery(DataSource dataSource,
Granularity granularity,
Filter filter,
Collection<Aggregation> aggregations,
Collection<PostAggregation> postAggregations,
Collection<org.joda.time.Interval> intervals)
Constructor.
|
TimeSeriesQuery(DataSource dataSource,
Granularity granularity,
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 |
---|---|
Collection<Dimension> |
getDimensions()
Returns the dimensions of the query if any.
|
TimeSeriesQuery |
withAggregations(Collection<Aggregation> aggregations)
Returns a copy of this query with the specified aggregations.
|
TimeSeriesQuery |
withAllIntervals(Collection<org.joda.time.Interval> intervals)
Returns a copy of this query with the specified intervals set in this and all inner queries.
|
TimeSeriesQuery |
withContext(QueryContext context)
Returns a copy of this query with the specified context.
|
TimeSeriesQuery |
withDataSource(DataSource dataSource)
Returns a copy of this query with the specified data source.
|
TimeSeriesQuery |
withFilter(Filter filter)
Returns a copy of this query with the specified filter.
|
TimeSeriesQuery |
withGranularity(Granularity granularity)
Returns a copy of this query with the specified time grain.
|
TimeSeriesQuery |
withInnermostDataSource(DataSource dataSource)
Returns a copy of this query with the specified data source on the innermost query.
|
TimeSeriesQuery |
withIntervals(Collection<org.joda.time.Interval> intervals)
Returns a copy of this query with the specified intervals.
|
TimeSeriesQuery |
withPostAggregations(Collection<PostAggregation> postAggregations)
Returns a copy of this query with the specified post aggregations.
|
getAggregations, getPostAggregations
getFilter, getGranularity, getIntervals
getContext, getDataSource, getQueryType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildSchemaColumns, getDependentFieldNames, getInnermostQuery, getInnerQuery, getMetricDimensions
getFilter, getGranularity, getIntervals
getContext, getDataSource, getQueryType
public TimeSeriesQuery(DataSource dataSource, Granularity granularity, Filter filter, Collection<Aggregation> aggregations, Collection<PostAggregation> postAggregations, Collection<org.joda.time.Interval> intervals, QueryContext context, boolean doFork)
dataSource
- The datasourcegranularity
- The granularityfilter
- 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 TimeSeriesQuery(DataSource dataSource, Granularity granularity, Filter filter, Collection<Aggregation> aggregations, Collection<PostAggregation> postAggregations, Collection<org.joda.time.Interval> intervals)
dataSource
- The datasourcegranularity
- The granularityfilter
- The filteraggregations
- The aggregationspostAggregations
- The post-aggregationsintervals
- The intervalspublic Collection<Dimension> getDimensions()
DruidAggregationQuery
getDimensions
in interface DruidAggregationQuery<TimeSeriesQuery>
getDimensions
in class AbstractDruidAggregationQuery<TimeSeriesQuery>
public TimeSeriesQuery withDataSource(DataSource dataSource)
DruidQuery
dataSource
- the new data sourcepublic TimeSeriesQuery withInnermostDataSource(DataSource dataSource)
DruidQuery
dataSource
- the new data sourcepublic TimeSeriesQuery withGranularity(Granularity granularity)
DruidFactQuery
granularity
- the new time grainpublic TimeSeriesQuery withFilter(Filter filter)
DruidFactQuery
filter
- the new filterpublic TimeSeriesQuery withAggregations(Collection<Aggregation> aggregations)
DruidAggregationQuery
aggregations
- the new aggregationspublic TimeSeriesQuery withPostAggregations(Collection<PostAggregation> postAggregations)
DruidAggregationQuery
postAggregations
- the new post aggregationspublic TimeSeriesQuery withIntervals(Collection<org.joda.time.Interval> intervals)
DruidFactQuery
intervals
- the new intervalspublic TimeSeriesQuery withAllIntervals(Collection<org.joda.time.Interval> intervals)
DruidFactQuery
All nested queries are copies of themselves with the specified intervals set.
intervals
- the new intervalspublic TimeSeriesQuery withContext(QueryContext context)
DruidQuery
context
- the new contextCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.