Class StructuralKey<K>

java.lang.Object
org.apache.beam.runners.local.StructuralKey<K>

public abstract class StructuralKey<K> extends Object
A (Key, Coder) pair that uses the structural value of the key (as provided by Coder.structuralValue(Object)) to perform equality and hashing.
  • Method Details

    • getKey

      public abstract K getKey()
      Returns the key that this StructuralKey was created from.
    • empty

      public static StructuralKey<?> empty()
      Get the empty StructuralKey. All instances of the empty key are considered equal.
    • of

      public static <K> StructuralKey<K> of(K key, Coder<K> coder)
      Create a new Structural Key of the provided key that can be encoded by the provided coder.