public class POMergeCogroup extends PhysicalOperator
PhysicalOperator.OriginalLocation
alias, illustrator, input, inputAttached, inputs, lineageTracer, mBagFactory, mTupleFactory, outputs, parentPlan, pigLogger, reporter, requestedParallelism, res, RESULT_EMPTY, RESULT_EOP, resultType
Constructor and Description |
---|
POMergeCogroup(OperatorKey k,
java.util.List<PhysicalOperator> inpPOs,
POLocalRearrange[] lrs,
int parallel) |
POMergeCogroup(POMergeCogroup copy) |
Modifier and Type | Method and Description |
---|---|
protected void |
addTupleToIndex(Tuple tuple,
java.util.List<Pair<java.lang.Integer,Tuple>> index)
Separates out key tuple from given tuple and adds it to index.
|
POMergeCogroup |
clone()
Make a copy of this operator.
|
FuncSpec |
getIdxFuncSpec() |
java.lang.String |
getIndexFileName() |
java.util.List<PhysicalPlan> |
getLRInnerPlansOf(int i) |
Result |
getNextTuple() |
Tuple |
illustratorMarkup(java.lang.Object in,
java.lang.Object out,
int eqClassIndex)
input tuple mark up to be illustrate-able
|
boolean |
isEndOfInput() |
java.lang.String |
name() |
protected java.util.List<Pair<java.lang.Integer,Tuple>> |
readIndex() |
void |
setEndOfInput(boolean isEndOfInput) |
void |
setEndOfRecordMark(byte endOfRecordMark) |
void |
setIdxFuncSpec(FuncSpec idxFileSpec) |
void |
setIndexFileName(java.lang.String indexFileName) |
void |
setLoaderSignatures(java.util.List<java.lang.String> loaderSignatures) |
void |
setSideFileSpecs(java.util.List<java.lang.String> sideFileSpecs) |
void |
setSideLoadFuncs(java.util.List<FuncSpec> sideLoadFuncs) |
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, staticDataCleanup
compareTo, equals, getOperatorKey, getProjectionMap, hashCode, regenerateProjectionMap, rewire, toString, unsetProjectionMap
public POMergeCogroup(OperatorKey k, java.util.List<PhysicalOperator> inpPOs, POLocalRearrange[] lrs, int parallel)
public POMergeCogroup(POMergeCogroup copy)
public void setEndOfRecordMark(byte endOfRecordMark)
public boolean isEndOfInput()
public void setEndOfInput(boolean isEndOfInput)
public Result getNextTuple() throws ExecException
getNextTuple
in class PhysicalOperator
ExecException
protected java.util.List<Pair<java.lang.Integer,Tuple>> readIndex() throws ExecException
ExecException
protected void addTupleToIndex(Tuple tuple, java.util.List<Pair<java.lang.Integer,Tuple>> index) throws ExecException
tuple
- index
- ExecException
public void visit(PhyPlanVisitor v) throws VisitorException
Operator
visit
in class PhysicalOperator
v
- Visitor to visit with.VisitorException
- if the visitor has a problem.public java.lang.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 java.util.List<PhysicalPlan> getLRInnerPlansOf(int i)
public void setSideLoadFuncs(java.util.List<FuncSpec> sideLoadFuncs)
public void setSideFileSpecs(java.util.List<java.lang.String> sideFileSpecs)
public java.lang.String getIndexFileName()
public void setIndexFileName(java.lang.String indexFileName)
public FuncSpec getIdxFuncSpec()
public void setIdxFuncSpec(FuncSpec idxFileSpec)
public void setLoaderSignatures(java.util.List<java.lang.String> loaderSignatures)
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 POMergeCogroup clone() throws java.lang.CloneNotSupportedException
PhysicalOperator
clone
in class PhysicalOperator
java.lang.CloneNotSupportedException
Do not use the clone method directly. Operators are cloned when logical plans
are cloned using {@link LogicalPlanCloner}
Copyright © 2007-2025 The Apache Software Foundation