public class POPackage extends PhysicalOperator
Modifier and Type | Class and Description |
---|---|
static class |
POPackage.PackageType |
PhysicalOperator.OriginalLocation
Modifier and Type | Field and Description |
---|---|
protected boolean |
distinct |
protected boolean |
isKeyCompound |
protected boolean |
isKeyTuple |
protected Tuple |
keyAsTuple |
protected java.util.Map<java.lang.Integer,Pair<java.lang.Boolean,java.util.Map<java.lang.Integer,java.lang.Integer>>> |
keyInfo |
protected static BagFactory |
mBagFactory |
protected static TupleFactory |
mTupleFactory |
alias, illustrator, input, inputAttached, inputs, lineageTracer, outputs, parentPlan, pigLogger, requestedParallelism, res, resultType
Constructor and Description |
---|
POPackage(OperatorKey k) |
POPackage(OperatorKey k,
int rp) |
POPackage(OperatorKey k,
int rp,
java.util.List<PhysicalOperator> inp) |
POPackage(OperatorKey k,
java.util.List<PhysicalOperator> inp) |
Modifier and Type | Method and Description |
---|---|
void |
attachInput(PigNullableWritable k,
java.util.Iterator<NullableTuple> inp)
Attaches the required inputs
|
POPackage |
clone()
Make a deep copy of this operator.
|
void |
detachInput()
attachInput's better half!
|
boolean[] |
getInner() |
java.util.Map<java.lang.Integer,Pair<java.lang.Boolean,java.util.Map<java.lang.Integer,java.lang.Integer>>> |
getKeyInfo() |
byte |
getKeyType() |
Result |
getNextTuple()
From the inputs, constructs the output tuple
for this co-group in the required format which
is (key, {bag of tuples from input 1}, {bag of tuples from input 2}, ...)
|
int |
getNumInps() |
POPackage.PackageType |
getPackageType() |
protected Tuple |
getValueTuple(NullableTuple ntup,
int index) |
Tuple |
illustratorMarkup(java.lang.Object in,
java.lang.Object out,
int eqClassIndex)
input tuple mark up to be illustrate-able
|
boolean |
isDistinct() |
java.lang.String |
name() |
void |
setDistinct(boolean distinct) |
void |
setInner(boolean[] inner) |
void |
setKeyCompound(boolean keyCompound) |
void |
setKeyInfo(java.util.Map<java.lang.Integer,Pair<java.lang.Boolean,java.util.Map<java.lang.Integer,java.lang.Integer>>> keyInfo) |
void |
setKeyTuple(boolean keyTuple) |
void |
setKeyType(byte keyType) |
void |
setNumInps(int numInps) |
void |
setPackageType(POPackage.PackageType type) |
void |
setUseSecondaryKey(boolean useSecondaryKey) |
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, 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
compareTo, equals, getOperatorKey, getProjectionMap, hashCode, regenerateProjectionMap, rewire, toString, unsetProjectionMap
protected boolean isKeyTuple
protected boolean isKeyCompound
protected Tuple keyAsTuple
protected boolean distinct
protected java.util.Map<java.lang.Integer,Pair<java.lang.Boolean,java.util.Map<java.lang.Integer,java.lang.Integer>>> keyInfo
protected static final BagFactory mBagFactory
protected static final TupleFactory mTupleFactory
public POPackage(OperatorKey k)
public POPackage(OperatorKey k, int rp)
public POPackage(OperatorKey k, java.util.List<PhysicalOperator> inp)
public POPackage(OperatorKey k, int rp, java.util.List<PhysicalOperator> inp)
public java.lang.String name()
name
in class Operator<PhyPlanVisitor>
public boolean supportsMultipleInputs()
Operator
supportsMultipleInputs
in class Operator<PhyPlanVisitor>
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 boolean supportsMultipleOutputs()
Operator
supportsMultipleOutputs
in class Operator<PhyPlanVisitor>
public void attachInput(PigNullableWritable k, java.util.Iterator<NullableTuple> inp)
k
- - the key being worked oninp
- - iterator of indexed tuples typically
obtained from Hadooppublic void detachInput()
detachInput
in class PhysicalOperator
public int getNumInps()
public void setNumInps(int numInps)
public boolean[] getInner()
public void setInner(boolean[] inner)
public Result getNextTuple() throws ExecException
getNextTuple
in class PhysicalOperator
ExecException
protected Tuple getValueTuple(NullableTuple ntup, int index) throws ExecException
ExecException
public byte getKeyType()
public void setKeyType(byte keyType)
public POPackage clone() throws java.lang.CloneNotSupportedException
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}
public void setKeyInfo(java.util.Map<java.lang.Integer,Pair<java.lang.Boolean,java.util.Map<java.lang.Integer,java.lang.Integer>>> keyInfo)
keyInfo
- the keyInfo to setpublic void setKeyTuple(boolean keyTuple)
keyTuple
- the keyTuple to setpublic void setKeyCompound(boolean keyCompound)
keyCompound
- the keyCompound to setpublic java.util.Map<java.lang.Integer,Pair<java.lang.Boolean,java.util.Map<java.lang.Integer,java.lang.Integer>>> getKeyInfo()
public boolean isDistinct()
public void setDistinct(boolean distinct)
distinct
- the distinct to setpublic void setUseSecondaryKey(boolean useSecondaryKey)
public void setPackageType(POPackage.PackageType type)
public POPackage.PackageType getPackageType()
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 illustratorCopyright © 2007-2012 The Apache Software Foundation