public class UnionPlan extends Object implements QueryPlan
Constructor and Description |
---|
UnionPlan(StatementContext context,
FilterableStatement statement,
TableRef table,
RowProjector projector,
Integer limit,
OrderByCompiler.OrderBy orderBy,
GroupByCompiler.GroupBy groupBy,
List<QueryPlan> plans,
ParameterMetaData paramMetaData) |
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
|
List<QueryPlan> |
getPlans() |
RowProjector |
getProjector()
Returns projector used to formulate resultSet row
|
List<List<Scan>> |
getScans() |
List<KeyRange> |
getSplits() |
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) |
ResultIterator |
iterator(ParallelScanGrouper scanGrouper) |
boolean |
useRoundRobinIterator() |
public UnionPlan(StatementContext context, FilterableStatement statement, TableRef table, RowProjector projector, Integer limit, OrderByCompiler.OrderBy orderBy, GroupByCompiler.GroupBy groupBy, List<QueryPlan> plans, ParameterMetaData paramMetaData) throws SQLException
SQLException
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) throws SQLException
SQLException
public ExplainPlan getExplainPlan() throws SQLException
getExplainPlan
in interface StatementPlan
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 boolean isRowKeyOrdered()
isRowKeyOrdered
in interface QueryPlan
public boolean useRoundRobinIterator() throws SQLException
useRoundRobinIterator
in interface QueryPlan
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
Copyright © 2015 Apache Software Foundation. All Rights Reserved.