public class Select extends UnaryOperator
tupleCounter| Constructor and Description |
|---|
Select(Operator operator,
Predicate predicate)
Constructs a new selection operator given its input.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<Tuple> |
innerProcessTuple(Tuple tuple,
int inOp)
Processes an incoming tuple.
|
protected Relation |
setOutputRelation()
Return a new relation for this operator's output relation.
|
protected java.lang.String |
toStringSingle()
Textual representation.
|
getInputOperatorallDone, cleanup, getInputOperator, getMultiNext, getNext, getNumberOfInputs, getOutputRelation, innerGetNext, prefix, processTuple, setInputs, setup, toString, toString, tuplespublic Select(Operator operator, Predicate predicate) throws EngineException
operator - the input operator.predicate - the predicate this selection operator
evaluates.EngineException - thrown whenever the selection operator cannot
be properly constructed.protected java.util.List<Tuple> innerProcessTuple(Tuple tuple, int inOp) throws EngineException
innerProcessTuple in class Operatortuple - the tuple to be processed.inOp - the incoming operator this tuple belongs to (should
always default to '0').EngineException - thrown whenever the tuple cannot be
evaluatedprotected Relation setOutputRelation() throws EngineException
setOutputRelation in class OperatorEngineException - whenever an output relation cannot be
constructed.protected java.lang.String toStringSingle()
toStringSingle in class Operator