public class POPackage extends PhysicalOperator
Modifier and Type | Class and Description |
---|---|
class |
POPackage.POPackageTupleBuffer |
PhysicalOperator.OriginalLocation
Modifier and Type | Field and Description |
---|---|
protected Object |
key |
protected PigNullableWritable |
keyWritable |
protected int |
numInputs |
protected Packager |
pkgr |
alias, illustrator, input, inputAttached, inputs, lineageTracer, mBagFactory, mTupleFactory, outputs, parentPlan, pigLogger, reporter, requestedParallelism, res, RESULT_EMPTY, RESULT_EOP, resultType
Constructor and Description |
---|
POPackage(OperatorKey k) |
POPackage(OperatorKey k,
int rp) |
POPackage(OperatorKey k,
int rp,
List<PhysicalOperator> inp) |
POPackage(OperatorKey k,
int rp,
List<PhysicalOperator> inp,
Packager pkgr) |
POPackage(OperatorKey k,
List<PhysicalOperator> inp) |
POPackage(POPackage copy) |
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!
|
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() |
Packager |
getPkgr() |
Tuple |
illustratorMarkup(Object in,
Object out,
int eqClassIndex)
input tuple mark up to be illustrate-able
|
String |
name() |
int |
numberOfEquivalenceClasses() |
void |
setIllustrator(Illustrator illustrator) |
void |
setNumInps(int numInps) |
void |
setPkgr(Packager pkgr) |
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, 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, setInputs, setParentPlan, setPigLogger, setReporter, setRequestedParallelism, setResultType, staticDataCleanup
compareTo, equals, getOperatorKey, getProjectionMap, hashCode, regenerateProjectionMap, rewire, toString, unsetProjectionMap
protected Object key
protected int numInputs
protected Packager pkgr
protected PigNullableWritable keyWritable
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 POPackage(OperatorKey k, int rp, List<PhysicalOperator> inp, Packager pkgr)
public POPackage(POPackage copy)
public void setIllustrator(Illustrator illustrator)
setIllustrator
in interface Illustrable
setIllustrator
in class PhysicalOperator
public 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, 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 Result getNextTuple() throws ExecException
getNextTuple
in class PhysicalOperator
ExecException
public Packager getPkgr()
public void setPkgr(Packager pkgr)
public POPackage clone() throws CloneNotSupportedException
public Tuple illustratorMarkup(Object in, Object out, int eqClassIndex)
Illustrable
in
- input tupleout
- output tuple before wrapped in ExampleTupleeqClassIndex
- index into equivalence classes in illustratorpublic int numberOfEquivalenceClasses()
Copyright © 2007-2017 The Apache Software Foundation