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 Map<Integer,Pair<Boolean,Map<Integer,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,
List<PhysicalOperator> inp) |
POPackage(OperatorKey k,
List<PhysicalOperator> inp) |
| Modifier and Type | Method and Description |
|---|---|
void |
attachInput(PigNullableWritable k,
Iterator<NullableTuple> inp)
Attaches the required inputs
|
POPackage |
clone()
Make a deep copy of this operator.
|
void |
detachInput()
attachInput's better half!
|
boolean[] |
getInner() |
Map<Integer,Pair<Boolean,Map<Integer,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(Object in,
Object out,
int eqClassIndex)
input tuple mark up to be illustrate-able
|
boolean |
isDistinct() |
String |
name() |
void |
setDistinct(boolean distinct) |
void |
setInner(boolean[] inner) |
void |
setKeyCompound(boolean keyCompound) |
void |
setKeyInfo(Map<Integer,Pair<Boolean,Map<Integer,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, setResultTypecompareTo, equals, getOperatorKey, getProjectionMap, hashCode, regenerateProjectionMap, rewire, toString, unsetProjectionMapprotected boolean isKeyTuple
protected boolean isKeyCompound
protected Tuple keyAsTuple
protected boolean distinct
protected static final BagFactory mBagFactory
protected static final TupleFactory mTupleFactory
public POPackage(OperatorKey k)
public POPackage(OperatorKey k, int rp)
public POPackage(OperatorKey k, List<PhysicalOperator> inp)
public POPackage(OperatorKey k, int rp, List<PhysicalOperator> inp)
public String name()
name in class Operator<PhyPlanVisitor>public boolean supportsMultipleInputs()
OperatorsupportsMultipleInputs 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 boolean supportsMultipleOutputs()
OperatorsupportsMultipleOutputs in class Operator<PhyPlanVisitor>public void attachInput(PigNullableWritable k, Iterator<NullableTuple> inp)
k - - the key being worked oninp - - iterator of indexed tuples typically
obtained from Hadooppublic void detachInput()
detachInput in class PhysicalOperatorpublic int getNumInps()
public void setNumInps(int numInps)
public boolean[] getInner()
public void setInner(boolean[] inner)
public Result getNextTuple() throws ExecException
getNextTuple in class PhysicalOperatorExecExceptionprotected Tuple getValueTuple(NullableTuple ntup, int index) throws ExecException
ExecExceptionpublic byte getKeyType()
public void setKeyType(byte keyType)
public POPackage clone() throws CloneNotSupportedException
public void setKeyInfo(Map<Integer,Pair<Boolean,Map<Integer,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 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(Object in, 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