|
||||||||||
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.LOLoad
public class LOLoad
Field Summary |
---|
Fields inherited from class org.apache.pig.impl.logicalLayer.LogicalOperator |
---|
mAlias, mCustomPartitioner, mIsProjectionMapComputed, mIsSchemaComputed, mPinnedOptions, mPlan, mProjectionMap, mRequestedParallelism, mSchema, mType |
Fields inherited from class org.apache.pig.impl.plan.Operator |
---|
mKey |
Constructor Summary | |
---|---|
LOLoad(LogicalPlan plan,
OperatorKey key,
FileSpec inputFileSpec,
org.apache.hadoop.conf.Configuration conf)
|
Method Summary | |
---|---|
org.apache.hadoop.conf.Configuration |
getConfiguration()
|
Schema |
getDeterminedSchema()
|
Schema |
getEnforcedSchema()
|
FileSpec |
getInputFile()
|
LoadFunc |
getLoadFunc()
|
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. |
LoadPushDown.RequiredFieldList |
getRequiredFieldList()
|
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. |
String |
name()
|
boolean |
pruneColumns(List<Pair<Integer,Integer>> columns)
|
LoadPushDown.RequiredFieldResponse |
pushProjection(LoadPushDown.RequiredFieldList requiredFieldList)
|
void |
setAlias(String newAlias)
|
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.RelationalOperator |
---|
insertPlainForEachAfter, pruneColumnInPlan, regenerateProjectionMap, unsetProjectionMap |
Methods inherited from class org.apache.pig.impl.logicalLayer.LogicalOperator |
---|
clone, forceSchema, getAlias, getAliasString, getCustomPartitioner, getOperatorKey, getPlan, getRequestedParallelism, isPinnedOption, pinOption, reconcileSchema, regenerateSchema, setCanonicalNames, setCustomPartitioner, setParent, setPlan, setRequestedParallelism, 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 LOLoad(LogicalPlan plan, OperatorKey key, FileSpec inputFileSpec, org.apache.hadoop.conf.Configuration conf) throws IOException
plan
- LogicalPlan this operator is a part of.key
- OperatorKey for this operatorinputFileSpec
- the file to be loaded *conf
- the read-only configuration object
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 byte getType()
LogicalOperator
getType
in class LogicalOperator
public Schema getDeterminedSchema()
public ProjectionMap getProjectionMap()
RelationalOperator
getProjectionMap
in class RelationalOperator
public List<RequiredFields> getRequiredFields()
RelationalOperator
getRequiredFields
in class RelationalOperator
public List<RequiredFields> getRelevantInputs(int output, int column) throws FrontendException
RelationalOperator
getRelevantInputs
in class RelationalOperator
output
- output index. Only LOSplit have output other than 0 currentlycolumn
- output column
FrontendException
public LoadPushDown.RequiredFieldResponse pushProjection(LoadPushDown.RequiredFieldList requiredFieldList) throws FrontendException
FrontendException
public void setAlias(String newAlias)
setAlias
in class LogicalOperator
public boolean pruneColumns(List<Pair<Integer,Integer>> columns) throws FrontendException
pruneColumns
in class RelationalOperator
FrontendException
public LoadPushDown.RequiredFieldList getRequiredFieldList()
public org.apache.hadoop.conf.Configuration getConfiguration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |