public final class KeySelectorUtil extends Object
KeySelector for streaming.| Modifier and Type | Class and Description |
|---|---|
static class |
KeySelectorUtil.ArrayKeySelector<IN>
A key selector for selecting individual array fields as keys and returns them as a Tuple.
|
static class |
KeySelectorUtil.ComparableKeySelector<IN>
A key selector for selecting key fields via a TypeComparator.
|
static class |
KeySelectorUtil.OneKeySelector<IN,K>
Key extractor that extracts a single field via a generic comparator.
|
| Modifier and Type | Method and Description |
|---|---|
static <X> KeySelectorUtil.ArrayKeySelector<X> |
getSelectorForArray(int[] positions,
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.java.operators.Keys<X> keys,
TypeInformation<X> typeInfo,
ExecutionConfig executionConfig) |
static <X,K> org.apache.flink.api.java.functions.KeySelector<X,K> |
getSelectorForOneKey(org.apache.flink.api.java.operators.Keys<X> keys,
Partitioner<K> partitioner,
TypeInformation<X> typeInfo,
ExecutionConfig executionConfig) |
public static <X> org.apache.flink.api.java.functions.KeySelector<X,org.apache.flink.api.java.tuple.Tuple> getSelectorForKeys(org.apache.flink.api.java.operators.Keys<X> keys,
TypeInformation<X> typeInfo,
ExecutionConfig executionConfig)
public static <X> KeySelectorUtil.ArrayKeySelector<X> getSelectorForArray(int[] positions, TypeInformation<X> typeInfo)
public static <X,K> org.apache.flink.api.java.functions.KeySelector<X,K> getSelectorForOneKey(org.apache.flink.api.java.operators.Keys<X> keys,
Partitioner<K> partitioner,
TypeInformation<X> typeInfo,
ExecutionConfig executionConfig)
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.