public class ScanPlan extends BaseQueryPlan
context, DEFAULT_ESTIMATED_SIZE, dynamicFilter, estimatedRows, estimatedSize, estimateInfoTimestamp, groupBy, limit, offset, orderBy, parallelIteratorFactory, paramMetaData, projection, statement, tableRef, tableRefs
Constructor and Description |
---|
ScanPlan(StatementContext context,
FilterableStatement statement,
TableRef table,
RowProjector projector,
Integer limit,
Integer offset,
OrderByCompiler.OrderBy orderBy,
ParallelIteratorFactory parallelIteratorFactory,
boolean allowPageFilter) |
Modifier and Type | Method and Description |
---|---|
Long |
getEstimatedBytesToScan() |
Long |
getEstimatedRowsToScan() |
Long |
getEstimateInfoTimestamp() |
List<List<Scan>> |
getScans() |
List<KeyRange> |
getSplits() |
protected ResultIterator |
newIterator(ParallelScanGrouper scanGrouper,
Scan scan,
Map<ImmutableBytesPtr,ServerCacheClient.ServerCache> caches) |
boolean |
useRoundRobinIterator() |
getContext, getDynamicFilter, getEstimatedSize, getExplainPlan, getGroupBy, getLimit, getOffset, getOperation, getOrderBy, getParameterMetaData, getProjector, getSourceRefs, getStatement, getTableRef, isDegenerate, isRowKeyOrdered, iterator, iterator, iterator, iterator
public ScanPlan(StatementContext context, FilterableStatement statement, TableRef table, RowProjector projector, Integer limit, Integer offset, OrderByCompiler.OrderBy orderBy, ParallelIteratorFactory parallelIteratorFactory, boolean allowPageFilter) throws SQLException
SQLException
protected ResultIterator newIterator(ParallelScanGrouper scanGrouper, Scan scan, Map<ImmutableBytesPtr,ServerCacheClient.ServerCache> caches) throws SQLException
newIterator
in class BaseQueryPlan
SQLException
public boolean useRoundRobinIterator() throws SQLException
ResultScanner
can be picked up in a round-robin
fashion. Generally, selecting scanners in such a fashion is possible if rows don't
have to be returned back in a certain order.SQLException
public Long getEstimatedRowsToScan() throws SQLException
getEstimatedRowsToScan
in interface StatementPlan
getEstimatedRowsToScan
in class BaseQueryPlan
SQLException
public Long getEstimatedBytesToScan() throws SQLException
getEstimatedBytesToScan
in interface StatementPlan
getEstimatedBytesToScan
in class BaseQueryPlan
SQLException
public Long getEstimateInfoTimestamp() throws SQLException
getEstimateInfoTimestamp
in interface StatementPlan
getEstimateInfoTimestamp
in class BaseQueryPlan
SQLException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.