|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pig.impl.plan.Operator<PhyPlanVisitor>
org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator
org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POLimit
public class POLimit
| Field Summary |
|---|
| Fields inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator |
|---|
alias, dummyBag, dummyBool, dummyDBA, dummyDouble, dummyFloat, dummyInt, dummyLong, dummyMap, dummyString, dummyTuple, illustrator, input, inputAttached, inputs, lineageTracer, outputs, parentPlan, pigLogger, reporter, requestedParallelism, res, resultType |
| Fields inherited from class org.apache.pig.impl.plan.Operator |
|---|
mKey |
| Constructor Summary | |
|---|---|
POLimit(OperatorKey k)
|
|
POLimit(OperatorKey k,
int rp)
|
|
POLimit(OperatorKey k,
int rp,
List<PhysicalOperator> inputs)
|
|
POLimit(OperatorKey k,
List<PhysicalOperator> inputs)
|
|
| Method Summary | |
|---|---|
POLimit |
clone()
Make a deep copy of this operator. |
long |
getLimit()
|
Result |
getNext(Tuple t)
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(Object in,
Object out,
int eqClassIndex)
input tuple mark up to be illustrate-able |
String |
name()
|
void |
reset()
Reset internal state in an operator. |
void |
setLimit(long limit)
|
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. |
| Methods inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator |
|---|
attachInput, cloneHelper, detachInput, getAlias, getAliasString, getDummy, getIllustrator, getInputs, getLogger, getNext, getNext, getNext, getNext, getNext, getNext, getNext, getNext, getNext, getNext, getPigLogger, getRequestedParallelism, getResultType, isAccumStarted, isAccumulative, isBlocking, isInputAttached, processInput, setAccumEnd, setAccumStart, setAccumulative, setAlias, setIllustrator, setInputs, setParentPlan, setPigLogger, setReporter, setRequestedParallelism, setResultType |
| Methods inherited from class org.apache.pig.impl.plan.Operator |
|---|
compareTo, equals, getOperatorKey, getProjectionMap, hashCode, regenerateProjectionMap, rewire, toString, unsetProjectionMap |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public POLimit(OperatorKey k)
public POLimit(OperatorKey k,
int rp)
public POLimit(OperatorKey k,
List<PhysicalOperator> inputs)
public POLimit(OperatorKey k,
int rp,
List<PhysicalOperator> inputs)
| Method Detail |
|---|
public void setLimit(long limit)
public long getLimit()
public Result getNext(Tuple t)
throws ExecException
getNext in class PhysicalOperatorExecExceptionpublic String name()
name in class Operator<PhyPlanVisitor>public boolean supportsMultipleInputs()
Operator
supportsMultipleInputs in class Operator<PhyPlanVisitor>public boolean supportsMultipleOutputs()
Operator
supportsMultipleOutputs in class Operator<PhyPlanVisitor>
public void visit(PhyPlanVisitor v)
throws VisitorException
Operator
visit in class PhysicalOperatorv - Visitor to visit with.
VisitorException - if the visitor has a problem.public void reset()
PhysicalOperator
reset in class PhysicalOperator
public POLimit clone()
throws CloneNotSupportedException
PhysicalOperator
clone in class PhysicalOperatorCloneNotSupportedExceptionDo not use the clone method directly. Operators are cloned when logical plans
are cloned using {@link LogicalPlanCloner}
public Tuple illustratorMarkup(Object in,
Object out,
int eqClassIndex)
Illustrable
in - input tupleout - output tuple before wrapped in ExampleTupleeqClassIndex - index into equivalence classes in illustrator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||