org.apache.pig.impl.logicalLayer
Class LOStore
java.lang.Object
org.apache.pig.impl.plan.Operator<LOVisitor>
org.apache.pig.impl.logicalLayer.LogicalOperator
org.apache.pig.impl.logicalLayer.LOStore
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<Operator>
public class LOStore
- extends LogicalOperator
- See Also:
- Serialized Form
Fields inherited from class org.apache.pig.impl.plan.Operator |
mKey |
Methods inherited from class org.apache.pig.impl.logicalLayer.LogicalOperator |
clone, forceSchema, getAlias, getOperatorKey, getPlan, getRequestedParallelism, getType, reconcileSchema, regenerateSchema, setAlias, setCanonicalNames, setPlan, setRequestedParallelism, setSchema, setSchemaComputed, setType, toString, unsetSchema |
LOStore
public LOStore(LogicalPlan plan,
OperatorKey key,
FileSpec outputFileSpec)
throws IOException
- Parameters:
plan
- LogicalPlan this operator is a part of.key
- OperatorKey for this operatoroutputFileSpec
- the file to be stored
- Throws:
IOException
getOutputFile
public FileSpec getOutputFile()
setOutputFile
public void setOutputFile(FileSpec outputFileSpec)
throws IOException
- Throws:
IOException
getStoreFunc
public StoreFunc getStoreFunc()
name
public String name()
- Specified by:
name
in class Operator<LOVisitor>
getSchema
public Schema getSchema()
throws FrontendException
- Description copied from class:
LogicalOperator
- Get a copy of the schema for the output of this operator.
- Specified by:
getSchema
in class LogicalOperator
- Throws:
FrontendException
supportsMultipleInputs
public boolean supportsMultipleInputs()
- Description copied from class:
Operator
- Indicates whether this operator supports multiple inputs.
- Specified by:
supportsMultipleInputs
in class Operator<LOVisitor>
- Returns:
- true if it does, otherwise false.
supportsMultipleOutputs
public boolean supportsMultipleOutputs()
- Description copied from class:
Operator
- Indicates whether this operator supports multiple outputs.
- Overrides:
supportsMultipleOutputs
in class LogicalOperator
- Returns:
- true if it does, otherwise false.
visit
public void visit(LOVisitor v)
throws VisitorException
- Description copied from class:
LogicalOperator
- Visit this node with the provided visitor. This should only be called by
the visitor class itself, never directly.
- Specified by:
visit
in class LogicalOperator
- Parameters:
v
- Visitor to visit with.
- Throws:
VisitorException
- if the visitor has a problem.
setInputSpec
public void setInputSpec(FileSpec in)
getInputSpec
public FileSpec getInputSpec()
getProjectionMap
public ProjectionMap getProjectionMap()
- Description copied from class:
LogicalOperator
- Produce a map describing how this operator modifies its projection.
- Overrides:
getProjectionMap
in class LogicalOperator
- Returns:
- ProjectionMap null indicates it does not know how the projection
changes, for example a join of two inputs where one input does not have
a schema.
getRequiredFields
public List<RequiredFields> getRequiredFields()
- Description copied from class:
LogicalOperator
- Get a list of fields that this operator requires. This is not necessarily
equivalent to the list of fields the operator projects. For example, a
filter will project anything passed to it, but requires only the fields
explicitly referenced in its filter expression.
- Overrides:
getRequiredFields
in class LogicalOperator
- Returns:
- list of RequiredFields null indicates that the operator does not need any
fields from its input.
Copyright © ${year} The Apache Software Foundation