public class WindowOperatorQuery extends BaseQuery<RowsAndColumns>
It relies on a set of Operators to work on the data that it is given. As such, it doesn't actually encapsulate any window-specific logic in-and-of-itself, but rather delegates everything to the operators. This is because this is also intended as the initial addition of more explicit Operators to the Druid code base.
The assumptions on the incoming data are defined by the operators. At initial time of writing, there is a baked in assumption that data has been sorted "correctly" before this runs.
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 |
|---|
WindowOperatorQuery(DataSource dataSource,
QuerySegmentSpec intervals,
Map<String,Object> context,
RowSignature rowSignature,
List<OperatorFactory> operators,
List<OperatorFactory> leafOperators) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
DimFilter |
getFilter() |
List<OperatorFactory> |
getLeafOperators() |
List<OperatorFactory> |
getOperators() |
RowSignature |
getRowSignature() |
String |
getType() |
boolean |
hasFilters() |
int |
hashCode() |
String |
toString() |
Query<RowsAndColumns> |
withDataSource(DataSource dataSource) |
Query<RowsAndColumns> |
withOverriddenContext(Map<String,Object> contextOverride) |
Query<RowsAndColumns> |
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 WindowOperatorQuery(DataSource dataSource, QuerySegmentSpec intervals, Map<String,Object> context, RowSignature rowSignature, List<OperatorFactory> operators, List<OperatorFactory> leafOperators)
public List<OperatorFactory> getOperators()
public List<OperatorFactory> getLeafOperators()
public RowSignature getRowSignature()
public boolean hasFilters()
public String getType()
public Query<RowsAndColumns> withOverriddenContext(Map<String,Object> contextOverride)
public Query<RowsAndColumns> 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<RowsAndColumns> withDataSource(DataSource dataSource)
public boolean equals(Object o)
equals in class BaseQuery<RowsAndColumns>public int hashCode()
hashCode in class BaseQuery<RowsAndColumns>Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.