|
||||||||||
| 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.PODemux
public class PODemux
The MapReduce Demultiplexer operator.
This operator is used when merging multiple Map-Reduce splittees into a Map-only splitter during multi-query optimization. The reduce physical plans of the splittees become the inner plans of this operator.
Due to the recursive nature of multi-query optimization, this operator may be contained in another demux operator.
The predecessor of this operator must be a POMultiQueryPackage operator which passes the index (indicating which inner reduce plan to run) along with other data to this operator.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator |
|---|
PhysicalOperator.OriginalLocation |
| Field Summary |
|---|
| Fields inherited from class org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator |
|---|
alias, illustrator, input, inputAttached, inputs, lineageTracer, outputs, parentPlan, pigLogger, requestedParallelism, res, resultType |
| Fields inherited from class org.apache.pig.impl.plan.Operator |
|---|
mKey |
| Constructor Summary | |
|---|---|
PODemux(OperatorKey k)
Constructs an operator with the specified key. |
|
PODemux(OperatorKey k,
int rp)
Constructs an operator with the specified key and degree of parallelism. |
|
PODemux(OperatorKey k,
int rp,
List<PhysicalOperator> inp)
Constructs an operator with the specified key, degree of parallelism and inputs. |
|
PODemux(OperatorKey k,
List<PhysicalOperator> inp)
Constructs an operator with the specified key and inputs. |
|
| Method Summary | |
|---|---|
void |
addPlan(PhysicalPlan inPlan)
Appends the specified plan at the end of the list. |
Result |
getNextTuple()
|
List<PhysicalPlan> |
getPlans()
Returns the list of inner plans. |
Tuple |
illustratorMarkup(Object in,
Object out,
int eqClassIndex)
input tuple mark up to be illustrate-able |
boolean |
isInCombiner()
Returns a flag indicating if this operator is in a combiner. |
String |
name()
|
void |
setInCombiner(boolean inCombiner)
Sets a flag indicating if this operator is in a combiner. |
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 |
|---|
addOriginalLocation, addOriginalLocation, attachInput, clone, cloneHelper, 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 |
| 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 PODemux(OperatorKey k)
k - the operator key
public PODemux(OperatorKey k,
int rp)
k - the operator keyrp - the degree of parallelism requested
public PODemux(OperatorKey k,
List<PhysicalOperator> inp)
k - the operator keyinp - the inputs that this operator will read data from
public PODemux(OperatorKey k,
int rp,
List<PhysicalOperator> inp)
k - the operator keyrp - the degree of parallelism requestedinp - the inputs that this operator will read data from| Method Detail |
|---|
public void visit(PhyPlanVisitor v)
throws VisitorException
Operator
visit in class PhysicalOperatorv - Visitor to visit with.
VisitorException - if the visitor has a problem.public 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 List<PhysicalPlan> getPlans()
public void addPlan(PhysicalPlan inPlan)
inPlan - plan to be appended to the inner plan list
public Result getNextTuple()
throws ExecException
getNextTuple in class PhysicalOperatorExecExceptionpublic void setInCombiner(boolean inCombiner)
inCombiner - true if this operator is in
a combiner; false if this operator is in a reducerpublic boolean isInCombiner()
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 | |||||||||