Class Tuples
java.lang.Object
org.apache.hadoop.util.functional.Tuples
Tuple support.
This allows for tuples to be passed around as part of the public API without
committing to a third-party library tuple implementation.
-
Method Summary
-
Method Details
-
pair
Create a 2-tuple.- Type Parameters:
K- element 1 typeV- element 2 type- Parameters:
key- element 1value- element 2- Returns:
- a tuple.
-