public class TimeBoundaryQuery extends BaseQuery<Result<TimeBoundaryResultValue>>
| Modifier and Type | Field and Description |
|---|---|
static String |
MAX_TIME |
static String |
MAX_TIME_ARRAY_OUTPUT_NAME |
static String |
MIN_TIME |
static String |
MIN_TIME_ARRAY_OUTPUT_NAME |
QUERY_ID, SQL_QUERY_ID, SUB_QUERY_IDDATASOURCE_METADATA, GROUP_BY, SCAN, SEARCH, SEGMENT_METADATA, SELECT, TIME_BOUNDARY, TIMESERIES, TOPN, WINDOW_OPERATOR| Constructor and Description |
|---|
TimeBoundaryQuery(DataSource dataSource,
QuerySegmentSpec querySegmentSpec,
String bound,
DimFilter dimFilter,
Map<String,Object> context) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Result<TimeBoundaryResultValue>> |
buildResult(org.joda.time.DateTime timestamp,
org.joda.time.DateTime min,
org.joda.time.DateTime max) |
boolean |
equals(Object o) |
String |
getBound() |
byte[] |
getCacheKey() |
DimFilter |
getFilter() |
String |
getType() |
boolean |
hasFilters() |
int |
hashCode() |
Iterable<Result<TimeBoundaryResultValue>> |
mergeResults(List<Result<TimeBoundaryResultValue>> results) |
String |
toString() |
Query<Result<TimeBoundaryResultValue>> |
withDataSource(DataSource dataSource) |
TimeBoundaryQuery |
withOverriddenContext(Map<String,Object> contextOverrides) |
TimeBoundaryQuery |
withQuerySegmentSpec(QuerySegmentSpec spec)
Returns a new query, identical to this one, but with a different associated
QuerySegmentSpec. |
checkInterrupted, computeOverriddenContext, computeOverridenContext, context, getContext, getDataSource, getDuration, getGranularity, getId, getIntervals, getQuerySegmentSpec, getQuerySegmentSpecForLookUp, getResultOrdering, getRunner, getSubQueryId, getTimezone, isDescending, withId, withSqlQueryId, withSubQueryIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetContextBoolean, getContextHumanReadableBytes, getContextValue, getMostSpecificId, getRequiredColumns, getSqlQueryId, getVirtualColumns, optimizeForSegment, withDefaultSubQueryId, withLane, withPrioritypublic static final String MAX_TIME
public static final String MIN_TIME
public static final String MAX_TIME_ARRAY_OUTPUT_NAME
public static final String MIN_TIME_ARRAY_OUTPUT_NAME
public TimeBoundaryQuery(DataSource dataSource, QuerySegmentSpec querySegmentSpec, String bound, DimFilter dimFilter, Map<String,Object> context)
public boolean hasFilters()
public DimFilter getFilter()
public String getType()
public String getBound()
public TimeBoundaryQuery withOverriddenContext(Map<String,Object> contextOverrides)
public TimeBoundaryQuery withQuerySegmentSpec(QuerySegmentSpec spec)
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<TimeBoundaryResultValue>> withDataSource(DataSource dataSource)
public byte[] getCacheKey()
public Iterable<Result<TimeBoundaryResultValue>> buildResult(org.joda.time.DateTime timestamp, org.joda.time.DateTime min, org.joda.time.DateTime max)
public Iterable<Result<TimeBoundaryResultValue>> mergeResults(List<Result<TimeBoundaryResultValue>> results)
public boolean equals(Object o)
equals in class BaseQuery<Result<TimeBoundaryResultValue>>public int hashCode()
hashCode in class BaseQuery<Result<TimeBoundaryResultValue>>Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.