org.apache.pig.impl.plan
Class OperatorKey

java.lang.Object
  extended by org.apache.pig.impl.plan.OperatorKey
All Implemented Interfaces:
Serializable, Comparable<OperatorKey>

public class OperatorKey
extends Object
implements Serializable, Comparable<OperatorKey>

See Also:
Serialized Form

Field Summary
 long id
           
 String scope
           
 
Constructor Summary
OperatorKey()
           
OperatorKey(String scope, long id)
           
 
Method Summary
 int compareTo(OperatorKey o)
           
 boolean equals(Object obj)
           
static OperatorKey genOpKey(String scope)
          Utility function for creating operator keys.
 long getId()
           
 String getScope()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

scope

public String scope

id

public long id
Constructor Detail

OperatorKey

public OperatorKey()

OperatorKey

public OperatorKey(String scope,
                   long id)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getScope

public String getScope()

getId

public long getId()

compareTo

public int compareTo(OperatorKey o)
Specified by:
compareTo in interface Comparable<OperatorKey>

genOpKey

public static OperatorKey genOpKey(String scope)
Utility function for creating operator keys.

Parameters:
scope - Scope to use in creating the key.
Returns:
new operator key.


Copyright © ${year} The Apache Software Foundation