Class KvToFlinkKeyKeySelector<K,V>
- java.lang.Object
-
- org.apache.beam.runners.flink.translation.wrappers.streaming.KvToFlinkKeyKeySelector<K,V>
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.java.functions.KeySelector<org.apache.beam.sdk.values.WindowedValue<org.apache.beam.sdk.values.KV<K,V>>,FlinkKey>,org.apache.flink.api.java.typeutils.ResultTypeQueryable<FlinkKey>
public class KvToFlinkKeyKeySelector<K,V> extends java.lang.Object implements org.apache.flink.api.java.functions.KeySelector<org.apache.beam.sdk.values.WindowedValue<org.apache.beam.sdk.values.KV<K,V>>,FlinkKey>, org.apache.flink.api.java.typeutils.ResultTypeQueryable<FlinkKey>
KeySelectorthat retrieves a key from aKV. This will return the key as encoded by the providedCoderin aFlinkKey. This ensures that all key comparisons/hashing happen on the encoded form.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KvToFlinkKeyKeySelector(org.apache.beam.sdk.coders.Coder<K> keyCoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlinkKeygetKey(org.apache.beam.sdk.values.WindowedValue<org.apache.beam.sdk.values.KV<K,V>> value)org.apache.flink.api.common.typeinfo.TypeInformation<FlinkKey>getProducedType()
-