public class POLimit extends PhysicalOperator
PhysicalOperator.OriginalLocationalias, illustrator, input, inputAttached, inputs, lineageTracer, outputs, parentPlan, pigLogger, reporter, requestedParallelism, res, RESULT_EMPTY, RESULT_EOP, resultType| Constructor and Description |
|---|
POLimit(OperatorKey k) |
POLimit(OperatorKey k,
int rp) |
POLimit(OperatorKey k,
int rp,
java.util.List<PhysicalOperator> inputs) |
POLimit(OperatorKey k,
java.util.List<PhysicalOperator> inputs) |
| Modifier and Type | Method and Description |
|---|---|
POLimit |
clone()
Make a deep copy of this operator.
|
long |
getLimit() |
PhysicalPlan |
getLimitPlan() |
Result |
getNextTuple()
Counts the number of tuples processed into static variable soFar, if the number of tuples processed reach the
limit, return EOP; Otherwise, return the tuple
|
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 |
reset()
Reset internal state in an operator.
|
void |
setLimit(long limit) |
void |
setLimitPlan(PhysicalPlan expressionPlan) |
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, 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, setAccumEnd, setAccumStart, setAccumulative, setIllustrator, setInputs, setParentPlan, setPigLogger, setReporter, setRequestedParallelism, setResultType, staticDataCleanupcompareTo, equals, getOperatorKey, getProjectionMap, hashCode, regenerateProjectionMap, rewire, toString, unsetProjectionMappublic POLimit(OperatorKey k)
public POLimit(OperatorKey k, int rp)
public POLimit(OperatorKey k, java.util.List<PhysicalOperator> inputs)
public POLimit(OperatorKey k, int rp, java.util.List<PhysicalOperator> inputs)
public void setLimit(long limit)
public long getLimit()
public PhysicalPlan getLimitPlan()
public void setLimitPlan(PhysicalPlan expressionPlan)
public Result getNextTuple() throws ExecException
getNextTuple in class PhysicalOperatorExecExceptionpublic java.lang.String name()
name in class Operator<PhyPlanVisitor>public boolean supportsMultipleInputs()
OperatorsupportsMultipleInputs in class Operator<PhyPlanVisitor>public boolean supportsMultipleOutputs()
OperatorsupportsMultipleOutputs in class Operator<PhyPlanVisitor>public void visit(PhyPlanVisitor v) throws VisitorException
Operatorvisit in class PhysicalOperatorv - Visitor to visit with.VisitorException - if the visitor has a problem.public void reset()
PhysicalOperatorreset in class PhysicalOperatorpublic POLimit clone() throws java.lang.CloneNotSupportedException
PhysicalOperatorclone in class PhysicalOperatorjava.lang.CloneNotSupportedExceptionDo not use the clone method directly. Operators are cloned when logical plans
are cloned using {@link LogicalPlanCloner}public Tuple illustratorMarkup(java.lang.Object in, java.lang.Object out, int eqClassIndex)
Illustrablein - input tupleout - output tuple before wrapped in ExampleTupleeqClassIndex - index into equivalence classes in illustratorCopyright © 2007-2012 The Apache Software Foundation