org.apache.pig.impl.logicalLayer
Class LOLoad
java.lang.Object
org.apache.pig.impl.plan.Operator<LOVisitor>
org.apache.pig.impl.logicalLayer.LogicalOperator
org.apache.pig.impl.logicalLayer.LOLoad
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<Operator>
public class LOLoad
- 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, reconcileSchema, regenerateSchema, setAlias, setCanonicalNames, setPlan, setRequestedParallelism, setSchemaComputed, setType, supportsMultipleOutputs, toString, unsetSchema |
splittable
protected boolean splittable
LOLoad
public LOLoad(LogicalPlan plan,
OperatorKey key,
FileSpec inputFileSpec,
ExecType execType,
DataStorage storage,
boolean splittable)
throws IOException
- Parameters:
plan
- LogicalPlan this operator is a part of.key
- OperatorKey for this operatorinputFileSpec
- the file to be loaded *schemaFile
- the file with the schema for the data to be loaded
- Throws:
IOException
getInputFile
public FileSpec getInputFile()
setInputFile
public void setInputFile(FileSpec inputFileSpec)
throws IOException
- Throws:
IOException
getSchemaFile
public String getSchemaFile()
getLoadFunc
public LoadFunc getLoadFunc()
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
setSchema
public void setSchema(Schema schema)
throws FrontendException
- Description copied from class:
LogicalOperator
- Set the output schema for this operator. If a schema already exists, an
attempt will be made to reconcile it with this new schema.
- Overrides:
setSchema
in class LogicalOperator
- Parameters:
schema
- Schema to set.
- 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.
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.
getEnforcedSchema
public Schema getEnforcedSchema()
setEnforcedSchema
public void setEnforcedSchema(Schema enforcedSchema)
- Set this when user enforces schema
- Parameters:
enforcedSchema
-
isSplittable
public boolean isSplittable()
getType
public byte getType()
- Description copied from class:
LogicalOperator
- Get the type of this operator.
- Overrides:
getType
in class LogicalOperator
getDeterminedSchema
public Schema getDeterminedSchema()
- Returns:
- the DeterminedSchema
Copyright © ${year} The Apache Software Foundation