org.apache.pig.impl.plan
Class OperatorKey
java.lang.Object
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
scope
public String scope
id
public long id
OperatorKey
public OperatorKey()
OperatorKey
public OperatorKey(String scope,
long id)
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 © 2012 The Apache Software Foundation