Package org.apache.beam.runners.local
Class StructuralKey<K>
java.lang.Object
org.apache.beam.runners.local.StructuralKey<K>
A (Key, Coder) pair that uses the structural value of the key (as provided by
Coder.structuralValue(Object)
) to perform equality and hashing.-
Method Summary
Modifier and TypeMethodDescriptionstatic StructuralKey
<?> empty()
Get the emptyStructuralKey
.abstract K
getKey()
Returns the key that thisStructuralKey
was created from.static <K> StructuralKey
<K> Create a new Structural Key of the provided key that can be encoded by the provided coder.
-
Method Details
-
getKey
Returns the key that thisStructuralKey
was created from. -
empty
Get the emptyStructuralKey
. All instances of the empty key are considered equal. -
of
Create a new Structural Key of the provided key that can be encoded by the provided coder.
-