|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pig.impl.plan.Operator<LOVisitor>
org.apache.pig.impl.logicalLayer.LogicalOperator
org.apache.pig.impl.logicalLayer.RelationalOperator
org.apache.pig.impl.logicalLayer.LOStream
public class LOStream
LOStream represents the specification of an external
command to be executed in a Pig Query.
LOStream encapsulates all relevant details of the
command specified by the user either directly via the STREAM
operator or indirectly via a DEFINE operator. It includes
details such as input/output/error specifications and also files to be
shipped to the cluster and files to be cached.
| Field Summary |
|---|
| Fields inherited from class org.apache.pig.impl.logicalLayer.LogicalOperator |
|---|
mAlias, mIsProjectionMapComputed, mIsSchemaComputed, mPinnedOptions, mPlan, mProjectionMap, mRequestedParallelism, mSchema, mType |
| Fields inherited from class org.apache.pig.impl.plan.Operator |
|---|
mKey |
| Constructor Summary | |
|---|---|
LOStream(LogicalPlan plan,
OperatorKey k,
LogicalOperator input,
ExecutableManager exeManager,
StreamingCommand cmd)
Create a new LOStream with the given command. |
|
| Method Summary | |
|---|---|
ExecutableManager |
getExecutableManager()
|
ProjectionMap |
getProjectionMap()
Produce a map describing how this operator modifies its projection. |
List<RequiredFields> |
getRelevantInputs(int output,
int column)
Get relevant input columns of a particular output column. |
List<RequiredFields> |
getRequiredFields()
Get a list of fields that this operator requires. |
Schema |
getSchema()
Get a copy of the schema for the output of this operator. |
StreamingCommand |
getStreamingCommand()
Get the StreamingCommand object associated with this operator |
String |
name()
|
void |
setOptimizedSpec(StreamingCommand.Handle handle,
String spec)
Set the optimized StreamingCommand.HandleSpec for the given StreamingCommand.Handle of the
StreamSpec. |
boolean |
supportsMultipleInputs()
Indicates whether this operator supports multiple inputs. |
void |
visit(LOVisitor v)
Visit this node with the provided visitor. |
| Methods inherited from class org.apache.pig.impl.logicalLayer.RelationalOperator |
|---|
insertPlainForEachAfter, pruneColumnInPlan, pruneColumns, regenerateProjectionMap, unsetProjectionMap |
| Methods inherited from class org.apache.pig.impl.logicalLayer.LogicalOperator |
|---|
clone, forceSchema, getAlias, getOperatorKey, getPlan, getRequestedParallelism, getType, isPinnedOption, pinOption, reconcileSchema, regenerateSchema, setAlias, setCanonicalNames, setPlan, setRequestedParallelism, setSchema, setSchemaComputed, setType, supportsMultipleOutputs, toString, unsetSchema |
| Methods inherited from class org.apache.pig.impl.plan.Operator |
|---|
compareTo, equals, hashCode, rewire |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LOStream(LogicalPlan plan,
OperatorKey k,
LogicalOperator input,
ExecutableManager exeManager,
StreamingCommand cmd)
LOStream with the given command.
plan - the logical plan this operator is a part ofk - the operator key for this operatorinput - operator that is input to this commandexeManager - ExecutableManager used by this streaming command.cmd - StreamingCommand for this stream to run.| Method Detail |
|---|
public StreamingCommand getStreamingCommand()
public Schema getSchema()
throws FrontendException
LogicalOperator
getSchema in class LogicalOperatorFrontendException
public void setOptimizedSpec(StreamingCommand.Handle handle,
String spec)
StreamingCommand.HandleSpec for the given StreamingCommand.Handle of the
StreamSpec.
handle - Handle to optimizespec - optimized specification for the handle
public void visit(LOVisitor v)
throws VisitorException
LogicalOperator
visit in class LogicalOperatorv - Visitor to visit with.
VisitorException - if the visitor has a problem.public String name()
name in class Operator<LOVisitor>public boolean supportsMultipleInputs()
Operator
supportsMultipleInputs in class Operator<LOVisitor>public ExecutableManager getExecutableManager()
public ProjectionMap getProjectionMap()
RelationalOperator
getProjectionMap in class RelationalOperatorpublic List<RequiredFields> getRequiredFields()
RelationalOperator
getRequiredFields in class RelationalOperator
public List<RequiredFields> getRelevantInputs(int output,
int column)
throws FrontendException
RelationalOperator
getRelevantInputs in class RelationalOperatoroutput - output index. Only LOSplit have output other than 0 currentlycolumn - output column
FrontendException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||