public class POProject extends ExpressionOperator
PhysicalOperator.OriginalLocation| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<Integer> |
columns |
protected boolean |
isProjectToEnd |
protected boolean |
overloaded |
protected int |
startCol |
alias, illustrator, input, inputAttached, inputs, lineageTracer, mBagFactory, mTupleFactory, outputs, parentPlan, pigLogger, reporter, requestedParallelism, res, RESULT_EMPTY, RESULT_EOP, resultType| Constructor and Description |
|---|
POProject(OperatorKey k) |
POProject(OperatorKey k,
int rp) |
POProject(OperatorKey k,
int rp,
ArrayList<Integer> cols) |
POProject(OperatorKey k,
int rp,
int col) |
| Modifier and Type | Method and Description |
|---|---|
void |
attachInput(Tuple t)
Overridden since the attachment of the new input
should cause the old processing to end.
|
POProject |
clone()
Make a deep copy of this operator.
|
protected Result |
consumeInputBag(Result input) |
List<ExpressionOperator> |
getChildExpressions()
Get the sub-expressions of this expression.
|
int |
getColumn() |
ArrayList<Integer> |
getColumns() |
Result |
getNext()
Fetches the input tuple and returns the requested
column
|
Result |
getNextBigDecimal() |
Result |
getNextBigInteger() |
Result |
getNextBoolean() |
Result |
getNextDataBag() |
Result |
getNextDataByteArray() |
Result |
getNextDateTime() |
Result |
getNextDouble() |
Result |
getNextFloat() |
Result |
getNextInteger() |
Result |
getNextLong() |
Result |
getNextMap() |
Result |
getNextString() |
Result |
getNextTuple()
Asked for Tuples.
|
int |
getStartCol() |
Tuple |
illustratorMarkup(Object in,
Object out,
int eqClassIndex)
input tuple mark up to be illustrate-able
|
boolean |
isOverloaded() |
boolean |
isProjectToEnd() |
boolean |
isStar() |
String |
name() |
protected Result |
processInputBag() |
void |
setColumn(int col) |
void |
setColumns(ArrayList<Integer> cols) |
void |
setOverloaded(boolean overloaded) |
void |
setProjectToEnd(int startCol) |
void |
setResultSingleTupleBag(boolean resultSingleTupleBag) |
void |
setStar(boolean star) |
boolean |
supportsMultipleInputs()
Indicates whether this operator supports multiple inputs.
|
boolean |
supportsMultipleOutputs()
Indicates whether this operator supports multiple outputs.
|
void |
visit(PhyPlanVisitor v)
Visit this node with the provided visitor.
|
accumChild, containUDF, setIllustrator, toStringaddOriginalLocation, addOriginalLocation, cloneHelper, clonePlans, copyAliasFrom, detachInput, getAlias, getAliasString, getIllustrator, getInputs, getLogger, getNext, getOriginalLocations, getParentPlan, getPigLogger, getReporter, getRequestedParallelism, getResultType, isAccumStarted, isAccumulative, isBlocking, isEndOfAllInput, isInputAttached, processInput, reset, setAccumEnd, setAccumStart, setAccumulative, setInputs, setParentPlan, setPigLogger, setReporter, setRequestedParallelism, setResultType, staticDataCleanupcompareTo, equals, getOperatorKey, getProjectionMap, hashCode, regenerateProjectionMap, rewire, unsetProjectionMapprotected boolean overloaded
protected boolean isProjectToEnd
protected int startCol
public POProject(OperatorKey k)
public POProject(OperatorKey k, int rp)
public POProject(OperatorKey k, int rp, int col)
public POProject(OperatorKey k, int rp, ArrayList<Integer> cols)
public void setProjectToEnd(int startCol)
public String name()
name in class Operator<PhyPlanVisitor>public boolean supportsMultipleInputs()
OperatorsupportsMultipleInputs in class Operator<PhyPlanVisitor>public boolean supportsMultipleOutputs()
OperatorsupportsMultipleOutputs in class ExpressionOperatorpublic void visit(PhyPlanVisitor v) throws VisitorException
Operatorvisit in class ExpressionOperatorv - Visitor to visit with.VisitorException - if the visitor has a problem.public void attachInput(Tuple t)
attachInput in class PhysicalOperatort - -
The tuple that should be used as inputpublic Result getNext() throws ExecException
ExecExceptionpublic Result getNextDataBag() throws ExecException
getNextDataBag in class ExpressionOperatorExecExceptionprotected Result consumeInputBag(Result input) throws ExecException
input - ExecExceptionpublic Result getNextDataByteArray() throws ExecException
getNextDataByteArray in class PhysicalOperatorExecExceptionpublic Result getNextDouble() throws ExecException
getNextDouble in class PhysicalOperatorExecExceptionpublic Result getNextFloat() throws ExecException
getNextFloat in class PhysicalOperatorExecExceptionpublic Result getNextInteger() throws ExecException
getNextInteger in class PhysicalOperatorExecExceptionpublic Result getNextLong() throws ExecException
getNextLong in class PhysicalOperatorExecExceptionpublic Result getNextBoolean() throws ExecException
getNextBoolean in class PhysicalOperatorExecExceptionpublic Result getNextDateTime() throws ExecException
getNextDateTime in class PhysicalOperatorExecExceptionpublic Result getNextMap() throws ExecException
getNextMap in class PhysicalOperatorExecExceptionpublic Result getNextString() throws ExecException
getNextString in class PhysicalOperatorExecExceptionpublic Result getNextBigInteger() throws ExecException
getNextBigInteger in class PhysicalOperatorExecExceptionpublic Result getNextBigDecimal() throws ExecException
getNextBigDecimal in class PhysicalOperatorExecExceptionpublic Result getNextTuple() throws ExecException
getNextTuple in class PhysicalOperatorExecExceptionpublic int getColumn()
throws ExecException
ExecExceptionpublic int getStartCol()
public void setColumn(int col)
public boolean isOverloaded()
public void setOverloaded(boolean overloaded)
public boolean isStar()
public boolean isProjectToEnd()
public void setStar(boolean star)
public POProject clone() throws CloneNotSupportedException
ExpressionOperatorprotected Result processInputBag() throws ExecException
ExecExceptionpublic void setResultSingleTupleBag(boolean resultSingleTupleBag)
public List<ExpressionOperator> getChildExpressions()
ExpressionOperatorgetChildExpressions in class ExpressionOperatorpublic Tuple illustratorMarkup(Object in, Object out, int eqClassIndex)
Illustrablein - input tupleout - output tuple before wrapped in ExampleTupleeqClassIndex - index into equivalence classes in illustratorCopyright © 2007-2017 The Apache Software Foundation