org.apache.pig.impl.logicalLayer
Class LOMapLookup
java.lang.Object
org.apache.pig.impl.plan.Operator<LOVisitor>
org.apache.pig.impl.logicalLayer.LogicalOperator
org.apache.pig.impl.logicalLayer.ExpressionOperator
org.apache.pig.impl.logicalLayer.LOMapLookup
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<Operator>
public class LOMapLookup
- extends ExpressionOperator
- 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, getAliasString, getCustomPartitioner, getOperatorKey, getPlan, getRequestedParallelism, isPinnedOption, pinOption, reconcileSchema, regenerateSchema, setAlias, setCanonicalNames, setCustomPartitioner, setParent, setPlan, setRequestedParallelism, setSchema, setSchemaComputed, setType, toString, unsetSchema |
LOMapLookup
public LOMapLookup(LogicalPlan plan,
OperatorKey key,
String mapKey,
byte valueType,
Schema valueSchema)
throws org.apache.pig.impl.logicalLayer.parser.ParseException
- Parameters:
plan
- Logical plan this operator is a part of.key
- Operator key to assign to this node.mapKey
- key to look up in the map. The key is of atomic typevalueType
- type of the value corresponding to the keyvalueSchema
- schema of the value if the type is tuple
- Throws:
org.apache.pig.impl.logicalLayer.parser.ParseException
getMap
public ExpressionOperator getMap()
getLookUpKey
public String getLookUpKey()
getValueType
public byte getValueType()
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.
getSchema
public Schema getSchema()
- Description copied from class:
LogicalOperator
- Get a copy of the schema for the output of this operator.
- Overrides:
getSchema
in class ExpressionOperator
getFieldSchema
public Schema.FieldSchema getFieldSchema()
throws FrontendException
- Overrides:
getFieldSchema
in class ExpressionOperator
- Throws:
FrontendException
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.
clone
protected Object clone()
throws CloneNotSupportedException
- Overrides:
clone
in class ExpressionOperator
- 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