public class Query
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private LogicalPlan |
logicalPlan |
private DbIterator |
op |
private static long |
serialVersionUID |
private boolean |
started |
(package private) TransactionId |
tid |
Constructor and Description |
---|
Query(DbIterator root,
TransactionId t) |
Query(TransactionId t) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the iterator
|
void |
execute() |
LogicalPlan |
getLogicalPlan() |
TupleDesc |
getOutputTupleDesc() |
DbIterator |
getPhysicalPlan() |
TransactionId |
getTransactionId() |
boolean |
hasNext() |
Tuple |
next()
Returns the next tuple, or throws NoSuchElementException if the iterator
is closed.
|
void |
setLogicalPlan(LogicalPlan lp) |
void |
setPhysicalPlan(DbIterator pp) |
void |
start() |
private static final long serialVersionUID
private transient DbIterator op
private transient LogicalPlan logicalPlan
TransactionId tid
private transient boolean started
public Query(TransactionId t)
public Query(DbIterator root, TransactionId t)
public TransactionId getTransactionId()
public void setLogicalPlan(LogicalPlan lp)
public LogicalPlan getLogicalPlan()
public void setPhysicalPlan(DbIterator pp)
public DbIterator getPhysicalPlan()
public void start() throws java.io.IOException, DbException, TransactionAbortedException
java.io.IOException
DbException
TransactionAbortedException
public TupleDesc getOutputTupleDesc()
public boolean hasNext() throws DbException, TransactionAbortedException
DbException
TransactionAbortedException
public Tuple next() throws DbException, java.util.NoSuchElementException, TransactionAbortedException
DbException
- If there is an error in the database systemjava.util.NoSuchElementException
- If the iterator has finished iteratingTransactionAbortedException
- If the transaction is aborted (e.g., due to a deadlock)public void close() throws java.io.IOException
java.io.IOException
public void execute() throws java.io.IOException, DbException, TransactionAbortedException
java.io.IOException
DbException
TransactionAbortedException