Class KeySelectorUtil
- java.lang.Object
-
- org.apache.flink.streaming.util.keys.KeySelectorUtil
-
@Internal public final class KeySelectorUtil extends Object
Utility class that contains helper methods to manipulatingKeySelectorfor streaming.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeySelectorUtil.ArrayKeySelector<IN>A key selector for selecting individual array fields as keys and returns them as a Tuple.static classKeySelectorUtil.ComparableKeySelector<IN>A key selector for selecting key fields via a TypeComparator.static classKeySelectorUtil.OneKeySelector<IN,K>Key extractor that extracts a single field via a generic comparator.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <X> KeySelectorUtil.ArrayKeySelector<X>getSelectorForArray(int[] positions, org.apache.flink.api.common.typeinfo.TypeInformation<X> typeInfo)static <X> org.apache.flink.api.java.functions.KeySelector<X,org.apache.flink.api.java.tuple.Tuple>getSelectorForKeys(org.apache.flink.api.common.operators.Keys<X> keys, org.apache.flink.api.common.typeinfo.TypeInformation<X> typeInfo, org.apache.flink.api.common.ExecutionConfig executionConfig)static <X,K>
org.apache.flink.api.java.functions.KeySelector<X,K>getSelectorForOneKey(org.apache.flink.api.common.operators.Keys<X> keys, org.apache.flink.api.common.functions.Partitioner<K> partitioner, org.apache.flink.api.common.typeinfo.TypeInformation<X> typeInfo, org.apache.flink.api.common.ExecutionConfig executionConfig)
-
-
-
Method Detail
-
getSelectorForKeys
public static <X> org.apache.flink.api.java.functions.KeySelector<X,org.apache.flink.api.java.tuple.Tuple> getSelectorForKeys(org.apache.flink.api.common.operators.Keys<X> keys, org.apache.flink.api.common.typeinfo.TypeInformation<X> typeInfo, org.apache.flink.api.common.ExecutionConfig executionConfig)
-
getSelectorForArray
public static <X> KeySelectorUtil.ArrayKeySelector<X> getSelectorForArray(int[] positions, org.apache.flink.api.common.typeinfo.TypeInformation<X> typeInfo)
-
getSelectorForOneKey
public static <X,K> org.apache.flink.api.java.functions.KeySelector<X,K> getSelectorForOneKey(org.apache.flink.api.common.operators.Keys<X> keys, org.apache.flink.api.common.functions.Partitioner<K> partitioner, org.apache.flink.api.common.typeinfo.TypeInformation<X> typeInfo, org.apache.flink.api.common.ExecutionConfig executionConfig)
-
-