Class KV<K,V>

java.lang.Object
org.apache.beam.sdk.values.KV<K,V>
Type Parameters:
K - the type of the key
V - the type of the value
All Implemented Interfaces:
Serializable

public class KV<K,V> extends Object implements Serializable
See Also:
  • Method Details

    • of

      @Pure public static <K, V> KV<K,V> of(K key, V value)
      Returns a KV with the given key and value.
    • getKey

      @Pure public K getKey()
      Returns the key of this KV.
    • getValue

      @Pure public V getValue()
      Returns the value of this KV.
    • equals

      public boolean equals(@Nullable Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object