Class 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
    • Constructor Detail

      • KeyValue

        public KeyValue​(K k,
                        V v)
    • Method Detail

      • create

        public static <R,​T> KeyValue<R,​T> create​(R k,
                                                             T v)
      • getKey

        public K getKey()
      • setKey

        public void setKey​(K k)
      • getValue

        public V getValue()
      • setValue

        public void setValue​(V v)