org.apache.pig.impl.logicalLayer
Class LOForEach
java.lang.Object
org.apache.pig.impl.plan.Operator<LOVisitor>
org.apache.pig.impl.logicalLayer.LogicalOperator
org.apache.pig.impl.logicalLayer.LOForEach
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<Operator>
public class LOForEach
- 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 |
forceSchema, getAlias, getOperatorKey, getPlan, getRequestedParallelism, reconcileSchema, regenerateSchema, setAlias, setCanonicalNames, setPlan, setRequestedParallelism, setSchema, setSchemaComputed, setType, supportsMultipleOutputs, toString |
LOForEach
public LOForEach(LogicalPlan plan,
OperatorKey k,
ArrayList<LogicalPlan> foreachPlans,
ArrayList<Boolean> flattenList)
- Parameters:
plan
- Logical plan this operator is a part of.k
- Operator key to assign to this node.foreachPlans
- the list of plans that are applied for each inputflattenList
- boolean list that tells which elements of the foreach
projection should be flattened.
LOForEach
public LOForEach(LogicalPlan plan,
OperatorKey k,
ArrayList<LogicalPlan> foreachPlans,
ArrayList<Boolean> flattenList,
ArrayList<Schema> userDefinedSchemaList)
getForEachPlans
public ArrayList<LogicalPlan> getForEachPlans()
setForEachPlans
public void setForEachPlans(ArrayList<LogicalPlan> foreachPlans)
getFlatten
public List<Boolean> getFlatten()
setFlatten
public void setFlatten(ArrayList<Boolean> flattenList)
getUserDefinedSchema
public List<Schema> getUserDefinedSchema()
setUserDefinedSchema
public void setUserDefinedSchema(ArrayList<Schema> userDefinedSchema)
name
public String name()
- Specified by:
name
in class Operator<LOVisitor>
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.
getType
public byte getType()
- Description copied from class:
LogicalOperator
- Get the type of this operator.
- Overrides:
getType
in class LogicalOperator
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
unsetSchema
public void unsetSchema()
throws VisitorException
- Description copied from class:
LogicalOperator
- Unset the schema as if it had not been calculated. This is used by
anyone who reorganizes the tree and needs to have schemas recalculated.
- Overrides:
unsetSchema
in class LogicalOperator
- Throws:
VisitorException
clone
protected Object clone()
throws CloneNotSupportedException
- Overrides:
clone
in class LogicalOperator
- Throws:
CloneNotSupportedException
- See Also:
Do not use the clone method directly. Operators are cloned when logical plans
are cloned using {@link LogicalPlanCloner}
Copyright © ${year} The Apache Software Foundation