org.apache.pig.experimental.logical.relational
Class LOLoad
java.lang.Object
org.apache.pig.experimental.plan.Operator
org.apache.pig.experimental.logical.relational.LogicalRelationalOperator
org.apache.pig.experimental.logical.relational.LOLoad
public class LOLoad
- extends LogicalRelationalOperator
LOLoad
public LOLoad(FileSpec loader,
LogicalSchema schema,
LogicalPlan plan)
- Parameters:
loader
- FuncSpec for load function to use for this load.schema
- schema user specified in script, or null if not
specified.plan
- logical plan this load is part of.
getLoadFunc
public LoadFunc getLoadFunc()
setScriptSchema
public void setScriptSchema(LogicalSchema schema)
getSchema
public LogicalSchema getSchema()
- Get the schema for this load. The schema will be either be what was
given by the user in the script or what the load functions getSchema
call returned. Otherwise null will be returned, indicating that the
schema is unknown.
- Specified by:
getSchema
in class LogicalRelationalOperator
- Returns:
- schema, or null if unknown
getFileSpec
public FileSpec getFileSpec()
accept
public void accept(PlanVisitor v)
throws IOException
- Description copied from class:
Operator
- Accept a visitor at this node in the graph.
- Specified by:
accept
in class Operator
- Parameters:
v
- Visitor to accept.
- Throws:
IOException
isEqual
public boolean isEqual(Operator other)
- Description copied from class:
Operator
- This is like a shallow equals comparison.
It returns true if two operators have equivalent properties even if they are
different objects. Here properties mean equivalent plan and equivalent name.
- Specified by:
isEqual
in class Operator
- Returns:
- true if two object have equivalent properties, else false
Copyright © ${year} The Apache Software Foundation