org.apache.pig.experimental.logical.expression
Class MapLookupExpression

java.lang.Object
  extended by org.apache.pig.experimental.plan.Operator
      extended by org.apache.pig.experimental.logical.expression.LogicalExpression
          extended by org.apache.pig.experimental.logical.expression.ColumnExpression
              extended by org.apache.pig.experimental.logical.expression.MapLookupExpression

public class MapLookupExpression
extends ColumnExpression


Field Summary
 
Fields inherited from class org.apache.pig.experimental.logical.expression.LogicalExpression
type, uid
 
Fields inherited from class org.apache.pig.experimental.plan.Operator
annotations, hashPrime, name, plan
 
Constructor Summary
MapLookupExpression(OperatorPlan plan, byte type, String mapKey, LogicalSchema.LogicalFieldSchema valueSchema)
           
 
Method Summary
 void accept(PlanVisitor v)
          Accept a visitor at this node in the graph.
 LogicalSchema.LogicalFieldSchema getFieldSchema()
           
 String getLookupKey()
           
 LogicalExpression getMap()
           
 boolean isEqual(Operator other)
          This is like a shallow equals comparison.
 String toString()
           
 
Methods inherited from class org.apache.pig.experimental.logical.expression.LogicalExpression
getNextUid, getType, getUid, neverUseForRealSetUid, resetNextUid, setUid
 
Methods inherited from class org.apache.pig.experimental.plan.Operator
annotate, getAnnotation, getName, getPlan, removeAnnotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapLookupExpression

public MapLookupExpression(OperatorPlan plan,
                           byte type,
                           String mapKey,
                           LogicalSchema.LogicalFieldSchema valueSchema)
Method Detail

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

getMap

public LogicalExpression getMap()
                         throws IOException
Throws:
IOException

getLookupKey

public String getLookupKey()

getFieldSchema

public LogicalSchema.LogicalFieldSchema getFieldSchema()

toString

public String toString()
Overrides:
toString in class LogicalExpression


Copyright © ${year} The Apache Software Foundation