|
||||||||||
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.LOLoad
public class LOLoad
Field Summary | |
---|---|
protected boolean |
splittable
|
Fields inherited from class org.apache.pig.impl.logicalLayer.LogicalOperator |
---|
mAlias, mIsSchemaComputed, mPlan, mRequestedParallelism, mSchema, mType |
Fields inherited from class org.apache.pig.impl.plan.Operator |
---|
mKey |
Constructor Summary | |
---|---|
LOLoad(LogicalPlan plan,
OperatorKey key,
FileSpec inputFileSpec,
ExecType execType,
DataStorage storage,
boolean splittable)
|
Method Summary | |
---|---|
Schema |
getDeterminedSchema()
|
Schema |
getEnforcedSchema()
|
FileSpec |
getInputFile()
|
LoadFunc |
getLoadFunc()
|
ProjectionMap |
getProjectionMap()
Produce a map describing how this operator modifies its projection. |
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. |
String |
getSchemaFile()
|
byte |
getType()
Get the type of this operator. |
boolean |
isSplittable()
|
String |
name()
|
void |
setEnforcedSchema(Schema enforcedSchema)
Set this when user enforces schema |
void |
setInputFile(FileSpec inputFileSpec)
|
void |
setSchema(Schema schema)
Set the output schema for this operator. |
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.LogicalOperator |
---|
clone, forceSchema, getAlias, getOperatorKey, getPlan, getRequestedParallelism, reconcileSchema, regenerateSchema, setAlias, setCanonicalNames, setPlan, setRequestedParallelism, setSchemaComputed, setType, supportsMultipleOutputs, toString, unsetSchema |
Methods inherited from class org.apache.pig.impl.plan.Operator |
---|
compareTo, equals, hashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean splittable
Constructor Detail |
---|
public LOLoad(LogicalPlan plan, OperatorKey key, FileSpec inputFileSpec, ExecType execType, DataStorage storage, boolean splittable) throws IOException
plan
- LogicalPlan this operator is a part of.key
- OperatorKey for this operatorinputFileSpec
- the file to be loaded *execType
- the execution mode @see org.apache.pig.ExecTypestorage
- the underlying storagesplittable
- if the input file is splittable (.gz is not)
IOException
Method Detail |
---|
public FileSpec getInputFile()
public void setInputFile(FileSpec inputFileSpec) throws IOException
IOException
public String getSchemaFile()
public LoadFunc getLoadFunc()
public String name()
name
in class Operator<LOVisitor>
public Schema getSchema() throws FrontendException
LogicalOperator
getSchema
in class LogicalOperator
FrontendException
public void setSchema(Schema schema) throws FrontendException
LogicalOperator
setSchema
in class LogicalOperator
schema
- Schema to set.
FrontendException
public boolean supportsMultipleInputs()
Operator
supportsMultipleInputs
in class Operator<LOVisitor>
public void visit(LOVisitor v) throws VisitorException
LogicalOperator
visit
in class LogicalOperator
v
- Visitor to visit with.
VisitorException
- if the visitor has a problem.public Schema getEnforcedSchema()
public void setEnforcedSchema(Schema enforcedSchema)
enforcedSchema
- public boolean isSplittable()
public byte getType()
LogicalOperator
getType
in class LogicalOperator
public Schema getDeterminedSchema()
public ProjectionMap getProjectionMap()
LogicalOperator
getProjectionMap
in class LogicalOperator
public List<RequiredFields> getRequiredFields()
LogicalOperator
getRequiredFields
in class LogicalOperator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |