public class PORank extends PhysicalOperator
PhysicalOperator.OriginalLocationalias, illustrator, input, inputAttached, inputs, lineageTracer, mBagFactory, mTupleFactory, outputs, parentPlan, pigLogger, reporter, requestedParallelism, res, RESULT_EMPTY, RESULT_EOP, resultType| Constructor and Description |
|---|
PORank(OperatorKey k) |
PORank(OperatorKey k,
int rp) |
PORank(OperatorKey k,
int rp,
List<PhysicalOperator> inp) |
PORank(OperatorKey operatorKey,
int requestedParallelism,
List inp,
List<PhysicalPlan> rankPlans,
List<Boolean> ascendingCol) |
PORank(OperatorKey k,
List<PhysicalOperator> inp) |
PORank(PORank copy) |
| Modifier and Type | Method and Description |
|---|---|
Result |
addRank(Result input)
Reads the output tuple from POCounter and the cumulative sum previously calculated.
|
PORank |
clone()
Make a copy of this operator.
|
List<Boolean> |
getAscendingCols() |
Result |
getNextTuple() |
String |
getOperationID() |
protected Long |
getRankCounterOffset(Integer taskId) |
List<PhysicalPlan> |
getRankPlans() |
Tuple |
illustratorMarkup(Object in,
Object out,
int eqClassIndex)
input tuple mark up to be illustrate-able
|
String |
name() |
void |
setAscendingCols(List<Boolean> mAscCols) |
void |
setOperationID(String operationID)
Operation ID: identifier shared within the corresponding POCounter
|
void |
setRankPlans(List<PhysicalPlan> rankPlans) |
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.
|
addOriginalLocation, addOriginalLocation, attachInput, cloneHelper, clonePlans, copyAliasFrom, detachInput, getAlias, getAliasString, getIllustrator, getInputs, getLogger, getNext, getNextBigDecimal, getNextBigInteger, getNextBoolean, getNextDataBag, getNextDataByteArray, getNextDateTime, getNextDouble, getNextFloat, getNextInteger, getNextLong, getNextMap, getNextString, getOriginalLocations, getParentPlan, getPigLogger, getReporter, getRequestedParallelism, getResultType, isAccumStarted, isAccumulative, isBlocking, isEndOfAllInput, isInputAttached, processInput, reset, setAccumEnd, setAccumStart, setAccumulative, setIllustrator, setInputs, setParentPlan, setPigLogger, setReporter, setRequestedParallelism, setResultType, staticDataCleanupcompareTo, equals, getOperatorKey, getProjectionMap, hashCode, regenerateProjectionMap, rewire, toString, unsetProjectionMappublic PORank(OperatorKey k)
public PORank(OperatorKey k, int rp)
public PORank(OperatorKey k, List<PhysicalOperator> inp)
public PORank(OperatorKey k, int rp, List<PhysicalOperator> inp)
public PORank(PORank copy)
public PORank(OperatorKey operatorKey, int requestedParallelism, List inp, List<PhysicalPlan> rankPlans, List<Boolean> ascendingCol)
public Tuple illustratorMarkup(Object in, Object out, int eqClassIndex)
Illustrablein - input tupleout - output tuple before wrapped in ExampleTupleeqClassIndex - index into equivalence classes in illustratorpublic void visit(PhyPlanVisitor v) throws VisitorException
Operatorvisit in class PhysicalOperatorv - Visitor to visit with.VisitorException - if the visitor has a problem.public Result getNextTuple() throws ExecException
getNextTuple in class PhysicalOperatorExecExceptionpublic Result addRank(Result input) throws ExecException
input - processed by POCounterExecExceptionpublic boolean supportsMultipleInputs()
OperatorsupportsMultipleInputs in class Operator<PhyPlanVisitor>public boolean supportsMultipleOutputs()
OperatorsupportsMultipleOutputs in class Operator<PhyPlanVisitor>public String name()
name in class Operator<PhyPlanVisitor>public void setRankPlans(List<PhysicalPlan> rankPlans)
public List<PhysicalPlan> getRankPlans()
public void setOperationID(String operationID)
operationID - public String getOperationID()
public PORank clone() throws CloneNotSupportedException
PhysicalOperatorCopyright © 2007-2017 The Apache Software Foundation