public class PORank extends PhysicalOperator
PhysicalOperator.OriginalLocation
Modifier and Type | Field and Description |
---|---|
protected static TupleFactory |
mTupleFactory |
alias, illustrator, input, inputAttached, inputs, lineageTracer, 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,
java.util.List<PhysicalOperator> inp) |
PORank(OperatorKey operatorKey,
int requestedParallelism,
java.util.List inp,
java.util.List<PhysicalPlan> rankPlans,
java.util.List<java.lang.Boolean> ascendingCol) |
PORank(OperatorKey k,
java.util.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.
|
java.util.List<java.lang.Boolean> |
getAscendingCols() |
Result |
getNextTuple() |
java.lang.String |
getOperationID() |
protected java.lang.Long |
getRankCounterOffset(java.lang.Integer taskId) |
java.util.List<PhysicalPlan> |
getRankPlans() |
Tuple |
illustratorMarkup(java.lang.Object in,
java.lang.Object out,
int eqClassIndex)
input tuple mark up to be illustrate-able
|
java.lang.String |
name() |
void |
setAscendingCols(java.util.List<java.lang.Boolean> mAscCols) |
void |
setOperationID(java.lang.String operationID)
Operation ID: identifier shared within the corresponding POCounter
|
void |
setRankPlans(java.util.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, clone, cloneHelper, copyAliasFrom, detachInput, getAlias, getAliasString, getIllustrator, getInputs, getLogger, getNext, getNextBigDecimal, getNextBigInteger, getNextBoolean, getNextDataBag, getNextDataByteArray, getNextDateTime, getNextDouble, getNextFloat, getNextInteger, getNextLong, getNextMap, getNextString, getOriginalLocations, getPigLogger, getReporter, getRequestedParallelism, getResultType, isAccumStarted, isAccumulative, isBlocking, isInputAttached, processInput, reset, setAccumEnd, setAccumStart, setAccumulative, setIllustrator, setInputs, setParentPlan, setPigLogger, setReporter, setRequestedParallelism, setResultType, staticDataCleanup
compareTo, equals, getOperatorKey, getProjectionMap, hashCode, regenerateProjectionMap, rewire, toString, unsetProjectionMap
protected static final TupleFactory mTupleFactory
public PORank(OperatorKey k)
public PORank(OperatorKey k, int rp)
public PORank(OperatorKey k, java.util.List<PhysicalOperator> inp)
public PORank(OperatorKey k, int rp, java.util.List<PhysicalOperator> inp)
public PORank(PORank copy)
public PORank(OperatorKey operatorKey, int requestedParallelism, java.util.List inp, java.util.List<PhysicalPlan> rankPlans, java.util.List<java.lang.Boolean> ascendingCol)
public Tuple illustratorMarkup(java.lang.Object in, java.lang.Object out, int eqClassIndex)
Illustrable
in
- input tupleout
- output tuple before wrapped in ExampleTupleeqClassIndex
- index into equivalence classes in illustratorpublic void visit(PhyPlanVisitor v) throws VisitorException
Operator
visit
in class PhysicalOperator
v
- Visitor to visit with.VisitorException
- if the visitor has a problem.public Result getNextTuple() throws ExecException
getNextTuple
in class PhysicalOperator
ExecException
public Result addRank(Result input) throws ExecException
input
- processed by POCounterExecException
protected java.lang.Long getRankCounterOffset(java.lang.Integer taskId)
public boolean supportsMultipleInputs()
Operator
supportsMultipleInputs
in class Operator<PhyPlanVisitor>
public boolean supportsMultipleOutputs()
Operator
supportsMultipleOutputs
in class Operator<PhyPlanVisitor>
public java.lang.String name()
name
in class Operator<PhyPlanVisitor>
public void setRankPlans(java.util.List<PhysicalPlan> rankPlans)
public java.util.List<PhysicalPlan> getRankPlans()
public void setAscendingCols(java.util.List<java.lang.Boolean> mAscCols)
public java.util.List<java.lang.Boolean> getAscendingCols()
public void setOperationID(java.lang.String operationID)
operationID
- public java.lang.String getOperationID()
Copyright © 2007-2012 The Apache Software Foundation