org.apache.pig.impl.logicalLayer
Class ExpressionOperator
java.lang.Object
org.apache.pig.impl.plan.Operator<LOVisitor>
org.apache.pig.impl.logicalLayer.LogicalOperator
org.apache.pig.impl.logicalLayer.ExpressionOperator
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<Operator>
- Direct Known Subclasses:
- BinaryExpressionOperator, LOBinCond, LOCast, LOConst, LOMapLookup, LOProject, LOUserFunc, UnaryExpressionOperator
public abstract class ExpressionOperator
- 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, toString, unsetSchema, visit |
mIsFieldSchemaComputed
protected boolean mIsFieldSchemaComputed
mFieldSchema
protected Schema.FieldSchema mFieldSchema
ExpressionOperator
public ExpressionOperator(LogicalPlan plan,
OperatorKey k,
int rp)
- Parameters:
plan
- Logical plan this operator is a part of.k
- Operator key to assign to this node.rp
- degree of requested parallelism with which to execute this
node.
ExpressionOperator
public ExpressionOperator(LogicalPlan plan,
OperatorKey k)
- Parameters:
plan
- Logical plan this operator is a part of.k
- Operator key to assign to this node.
supportsMultipleOutputs
public boolean supportsMultipleOutputs()
- Description copied from class:
Operator
- Indicates whether this operator supports multiple outputs.
- Overrides:
supportsMultipleOutputs
in class LogicalOperator
- Returns:
- true if it does, otherwise false.
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
getFieldSchema
public Schema.FieldSchema getFieldSchema()
throws FrontendException
- Throws:
FrontendException
setFieldSchema
public void setFieldSchema(Schema.FieldSchema fs)
throws FrontendException
- Set the output schema for this operator. If a schema already exists, an
attempt will be made to reconcile it with this new schema.
- Parameters:
fs
- FieldSchema to set.
- Throws:
FrontendException
- if there is already a schema and the existing schema cannot
be reconciled with this new schema.
unsetFieldSchema
public void unsetFieldSchema()
- Unset the field schema as if it had not been calculated. This is used
by anyone who reorganizes the tree and needs to have schemas
recalculated.
regenerateFieldSchema
public Schema.FieldSchema regenerateFieldSchema()
throws FrontendException
- Throws:
FrontendException
getType
public byte getType()
- Description copied from class:
LogicalOperator
- Get the type of this operator.
- Overrides:
getType
in class LogicalOperator
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