public abstract class BaseQueryPlan extends Object implements QueryPlan
Modifier and Type | Field and Description |
---|---|
protected StatementContext |
context |
protected static long |
DEFAULT_ESTIMATED_SIZE |
protected GroupByCompiler.GroupBy |
groupBy |
protected Integer |
limit |
protected OrderByCompiler.OrderBy |
orderBy |
protected ParallelIteratorFactory |
parallelIteratorFactory |
protected ParameterMetaData |
paramMetaData |
protected RowProjector |
projection |
protected FilterableStatement |
statement |
protected TableRef |
tableRef |
Modifier | Constructor and Description |
---|---|
protected |
BaseQueryPlan(StatementContext context,
FilterableStatement statement,
TableRef table,
RowProjector projection,
ParameterMetaData paramMetaData,
Integer limit,
OrderByCompiler.OrderBy orderBy,
GroupByCompiler.GroupBy groupBy,
ParallelIteratorFactory parallelIteratorFactory) |
Modifier and Type | Method and Description |
---|---|
StatementContext |
getContext() |
long |
getEstimatedSize() |
ExplainPlan |
getExplainPlan() |
GroupByCompiler.GroupBy |
getGroupBy() |
Integer |
getLimit() |
OrderByCompiler.OrderBy |
getOrderBy() |
ParameterMetaData |
getParameterMetaData()
Returns the ParameterMetaData for the statement
|
RowProjector |
getProjector()
Returns projector used to formulate resultSet row
|
FilterableStatement |
getStatement() |
TableRef |
getTableRef() |
boolean |
isDegenerate() |
boolean |
isRowKeyOrdered() |
ResultIterator |
iterator()
Get a result iterator to iterate over the results
|
ResultIterator |
iterator(List<? extends SQLCloseable> dependencies,
ParallelScanGrouper scanGrouper) |
ResultIterator |
iterator(ParallelScanGrouper scanGrouper) |
protected abstract ResultIterator |
newIterator(ParallelScanGrouper scanGrouper) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getScans, getSplits, useRoundRobinIterator
protected static final long DEFAULT_ESTIMATED_SIZE
protected final TableRef tableRef
protected final StatementContext context
protected final FilterableStatement statement
protected final RowProjector projection
protected final ParameterMetaData paramMetaData
protected final Integer limit
protected final OrderByCompiler.OrderBy orderBy
protected final GroupByCompiler.GroupBy groupBy
protected final ParallelIteratorFactory parallelIteratorFactory
protected BaseQueryPlan(StatementContext context, FilterableStatement statement, TableRef table, RowProjector projection, ParameterMetaData paramMetaData, Integer limit, OrderByCompiler.OrderBy orderBy, GroupByCompiler.GroupBy groupBy, ParallelIteratorFactory parallelIteratorFactory)
public boolean isDegenerate()
isDegenerate
in interface QueryPlan
public GroupByCompiler.GroupBy getGroupBy()
getGroupBy
in interface QueryPlan
public OrderByCompiler.OrderBy getOrderBy()
getOrderBy
in interface QueryPlan
public TableRef getTableRef()
getTableRef
in interface QueryPlan
public RowProjector getProjector()
QueryPlan
getProjector
in interface QueryPlan
public final ResultIterator iterator(ParallelScanGrouper scanGrouper) throws SQLException
iterator
in interface QueryPlan
SQLException
public final ResultIterator iterator() throws SQLException
QueryPlan
iterator
in interface QueryPlan
SQLException
public final ResultIterator iterator(List<? extends SQLCloseable> dependencies, ParallelScanGrouper scanGrouper) throws SQLException
SQLException
protected abstract ResultIterator newIterator(ParallelScanGrouper scanGrouper) throws SQLException
SQLException
public long getEstimatedSize()
getEstimatedSize
in interface QueryPlan
public ParameterMetaData getParameterMetaData()
StatementPlan
getParameterMetaData
in interface StatementPlan
public FilterableStatement getStatement()
getStatement
in interface QueryPlan
public StatementContext getContext()
getContext
in interface StatementPlan
public ExplainPlan getExplainPlan() throws SQLException
getExplainPlan
in interface StatementPlan
SQLException
public boolean isRowKeyOrdered()
isRowKeyOrdered
in interface QueryPlan
Copyright © 2015 Apache Software Foundation. All Rights Reserved.