Package org.apache.heron.streamlet
Class KeyValue<K,V>
- java.lang.Object
-
- org.apache.heron.streamlet.KeyValue<K,V>
-
- All Implemented Interfaces:
Serializable
public final class KeyValue<K,V> extends Object implements Serializable
Certain operations in the Streamlet API, like join/reduce, necessitate the concept of key value pairs. This file defines a generic KeyValue class. We make the KeyValue class serializable to allow it to be serialized between components.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <R,T>
KeyValue<R,T>create(R k, T v)
K
getKey()
V
getValue()
void
setKey(K k)
void
setValue(V v)
String
toString()
-