public class TimeseriesQuery extends BaseQuery<Result<TimeseriesResultValue>>
| Modifier and Type | Field and Description |
|---|---|
static String |
CTX_GRAND_TOTAL |
static String |
CTX_TIMESTAMP_RESULT_FIELD |
static String |
SKIP_EMPTY_BUCKETS |
QUERY_ID, SQL_QUERY_ID, SUB_QUERY_IDDATASOURCE_METADATA, GROUP_BY, SCAN, SEARCH, SEGMENT_METADATA, SELECT, TIME_BOUNDARY, TIMESERIES, TOPN| Constructor and Description |
|---|
TimeseriesQuery(DataSource dataSource,
QuerySegmentSpec querySegmentSpec,
boolean descending,
VirtualColumns virtualColumns,
DimFilter dimFilter,
Granularity granularity,
List<AggregatorFactory> aggregatorSpecs,
List<PostAggregator> postAggregatorSpecs,
int limit,
Map<String,Object> context) |
checkInterrupted, computeOverriddenContext, computeOverridenContext, getContext, getContextBoolean, getContextValue, getContextValue, getDataSource, getDuration, getGranularity, getId, getIntervals, getQuerySegmentSpec, getQuerySegmentSpecForLookUp, getResultOrdering, getRunner, getSqlQueryId, getSubQueryId, getTimezone, isDescending, withId, withSqlQueryId, withSubQueryIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMostSpecificId, withDefaultSubQueryId, withLane, withPrioritypublic static final String CTX_GRAND_TOTAL
public static final String SKIP_EMPTY_BUCKETS
public static final String CTX_TIMESTAMP_RESULT_FIELD
public TimeseriesQuery(DataSource dataSource, QuerySegmentSpec querySegmentSpec, boolean descending, VirtualColumns virtualColumns, DimFilter dimFilter, Granularity granularity, List<AggregatorFactory> aggregatorSpecs, List<PostAggregator> postAggregatorSpecs, int limit, Map<String,Object> context)
public boolean hasFilters()
public DimFilter getFilter()
public String getType()
public VirtualColumns getVirtualColumns()
public DimFilter getDimensionsFilter()
public List<AggregatorFactory> getAggregatorSpecs()
public List<PostAggregator> getPostAggregatorSpecs()
public int getLimit()
public boolean isGrandTotal()
public String getTimestampResultField()
public boolean isSkipEmptyBuckets()
public TimeseriesQuery withQuerySegmentSpec(QuerySegmentSpec querySegmentSpec)
QueryQuerySegmentSpec.
This often changes the behavior of Query.getRunner(QuerySegmentWalker), since most queries inherit that method
from BaseQuery, which implements it by calling QuerySegmentSpec.lookup(org.apache.druid.query.Query<T>, org.apache.druid.query.QuerySegmentWalker).public Query<Result<TimeseriesResultValue>> withDataSource(DataSource dataSource)
public Query<Result<TimeseriesResultValue>> optimizeForSegment(PerSegmentQueryOptimizationContext optimizationContext)
public TimeseriesQuery withOverriddenContext(Map<String,Object> contextOverrides)
public TimeseriesQuery withDimFilter(DimFilter dimFilter)
public TimeseriesQuery withPostAggregatorSpecs(List<PostAggregator> postAggregatorSpecs)
public boolean equals(Object o)
equals in class BaseQuery<Result<TimeseriesResultValue>>public int hashCode()
hashCode in class BaseQuery<Result<TimeseriesResultValue>>Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.