Package org.apache.nemo.common
Class PairKeyExtractor
- java.lang.Object
-
- org.apache.nemo.common.PairKeyExtractor
-
- All Implemented Interfaces:
java.io.Serializable
,KeyExtractor
public final class PairKeyExtractor extends java.lang.Object implements KeyExtractor
A KeyExtractor for Pair class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PairKeyExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.Object
extractKey(java.lang.Object element)
Extracts key.int
hashCode()
-
-
-
Method Detail
-
extractKey
public java.lang.Object extractKey(java.lang.Object element)
Description copied from interface:KeyExtractor
Extracts key.- Specified by:
extractKey
in interfaceKeyExtractor
- Parameters:
element
- Element to get the key from.- Returns:
- The extracted key of the element.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-