public class POStream extends PhysicalOperator
PhysicalOperator.OriginalLocation
Modifier and Type | Field and Description |
---|---|
protected boolean |
allInputFromPredecessorConsumed |
protected boolean |
allOutputFromBinaryProcessed |
protected BlockingQueue<Result> |
binaryInputQueue |
protected BlockingQueue<Result> |
binaryOutputQueue |
alias, illustrator, input, inputAttached, inputs, lineageTracer, mBagFactory, mTupleFactory, outputs, parentPlan, pigLogger, reporter, requestedParallelism, res, RESULT_EMPTY, RESULT_EOP, resultType
Constructor and Description |
---|
POStream(OperatorKey k,
ExecutableManager executableManager,
StreamingCommand command,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
PhysicalOperator |
clone()
Make a copy of this operator.
|
void |
finish() |
BlockingQueue<Result> |
getBinaryInputQueue() |
BlockingQueue<Result> |
getBinaryOutputQueue() |
StreamingCommand |
getCommand()
Get the
StreamingCommand for this StreamSpec . |
boolean |
getInitialized() |
Result |
getNextHelper(Tuple t) |
Result |
getNextTuple() |
Properties |
getShipCacheProperties() |
Tuple |
illustratorMarkup(Object in,
Object out,
int eqClassIndex)
input tuple mark up to be illustrate-able
|
boolean |
isFetchable() |
String |
name() |
void |
setFetchable(boolean isFetchable) |
void |
setInitialized(boolean initialized) |
boolean |
supportsMultipleInputs()
Indicates whether this operator supports multiple inputs.
|
boolean |
supportsMultipleOutputs()
Indicates whether this operator supports multiple outputs.
|
String |
toString() |
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, getPigLogger, getReporter, getRequestedParallelism, getResultType, isAccumStarted, isAccumulative, isBlocking, isInputAttached, processInput, reset, setAccumEnd, setAccumStart, setAccumulative, setIllustrator, setInputs, setParentPlan, setPigLogger, setReporter, setRequestedParallelism, setResultType, staticDataCleanup
compareTo, equals, getOperatorKey, getProjectionMap, hashCode, regenerateProjectionMap, rewire, unsetProjectionMap
protected BlockingQueue<Result> binaryOutputQueue
protected BlockingQueue<Result> binaryInputQueue
protected transient boolean allInputFromPredecessorConsumed
protected transient boolean allOutputFromBinaryProcessed
public POStream(OperatorKey k, ExecutableManager executableManager, StreamingCommand command, Properties properties)
public Properties getShipCacheProperties()
public StreamingCommand getCommand()
StreamingCommand
for this StreamSpec
.StreamingCommand
for this StreamSpec
public Result getNextTuple() throws ExecException
getNextTuple
in class PhysicalOperator
ExecException
public boolean getInitialized()
public void setInitialized(boolean initialized)
public Result getNextHelper(Tuple t) throws ExecException
ExecException
public String toString()
toString
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 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 void finish() throws IOException
IOException
public BlockingQueue<Result> getBinaryInputQueue()
public BlockingQueue<Result> getBinaryOutputQueue()
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 boolean isFetchable()
public void setFetchable(boolean isFetchable)
isFetchable
- - whether fetching is applied on POStreampublic PhysicalOperator clone() throws CloneNotSupportedException
PhysicalOperator
Copyright © 2007-2012 The Apache Software Foundation