public class ScanQuery extends BaseQuery<ScanResultValue>
| Modifier and Type | Class and Description |
|---|---|
static class |
ScanQuery.Order |
static class |
ScanQuery.ResultFormat |
| Modifier and Type | Field and Description |
|---|---|
static String |
CTX_KEY_OUTERMOST
This context flag corresponds to whether the query is running on the "outermost" process (i.e.
|
QUERY_ID, SQL_QUERY_ID, SUB_QUERY_IDDATASOURCE_METADATA, GROUP_BY, SCAN, SEARCH, SEGMENT_METADATA, SELECT, TIME_BOUNDARY, TIMESERIES, TOPN| Constructor and Description |
|---|
ScanQuery(DataSource dataSource,
QuerySegmentSpec querySegmentSpec,
VirtualColumns virtualColumns,
ScanQuery.ResultFormat resultFormat,
int batchSize,
long scanRowsLimit,
ScanQuery.Order order,
DimFilter dimFilter,
List<String> columns,
Boolean legacy,
Map<String,Object> context) |
checkInterrupted, computeOverriddenContext, computeOverridenContext, getContext, getContextBoolean, getContextValue, getContextValue, getDataSource, getDuration, getGranularity, getId, getIntervals, getQuerySegmentSpec, getQuerySegmentSpecForLookUp, getRunner, getSqlQueryId, getSubQueryId, getTimezone, isDescending, withId, withSqlQueryId, withSubQueryIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMostSpecificId, optimizeForSegment, withDefaultSubQueryId, withLane, withPrioritypublic static final String CTX_KEY_OUTERMOST
public ScanQuery(DataSource dataSource, QuerySegmentSpec querySegmentSpec, VirtualColumns virtualColumns, ScanQuery.ResultFormat resultFormat, int batchSize, long scanRowsLimit, ScanQuery.Order order, DimFilter dimFilter, List<String> columns, Boolean legacy, Map<String,Object> context)
public VirtualColumns getVirtualColumns()
public ScanQuery.ResultFormat getResultFormat()
public int getBatchSize()
public long getScanRowsLimit()
public ScanQuery.Order getOrder()
@Nullable public Integer getMaxSegmentPartitionsOrderedInMemory()
public boolean hasFilters()
public DimFilter getFilter()
public String getType()
public Boolean isLegacy()
public com.google.common.collect.Ordering<ScanResultValue> getResultOrdering()
BaseQueryQuery.getResultOrdering() that uses Ordering.natural().
If your query result type T is not Comparable, you must override this method.getResultOrdering in interface Query<ScanResultValue>getResultOrdering in class BaseQuery<ScanResultValue>public ScanQuery withNonNullLegacy(ScanQueryConfig scanQueryConfig)
public Query<ScanResultValue> 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<ScanResultValue> withDataSource(DataSource dataSource)
public Query<ScanResultValue> withOverriddenContext(Map<String,Object> contextOverrides)
public boolean equals(Object o)
equals in class BaseQuery<ScanResultValue>public int hashCode()
hashCode in class BaseQuery<ScanResultValue>Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.