| Package | Description |
|---|---|
| org.apache.flink.api.java | |
| org.apache.flink.api.java.operators | |
| org.apache.flink.api.java.operators.translation | |
| org.apache.flink.api.java.typeutils |
| Modifier and Type | Method and Description |
|---|---|
<K> DistinctOperator<T> |
DataSet.distinct(KeySelector<T,K> keyExtractor)
Returns a distinct set of a
DataSet using a KeySelector function. |
<K> UnsortedGrouping<T> |
DataSet.groupBy(KeySelector<T,K> keyExtractor)
Groups a
DataSet using a KeySelector function. |
<K extends Comparable<K>> |
DataSet.partitionByHash(KeySelector<T,K> keyExtractor)
Partitions a DataSet using the specified KeySelector.
|
<K extends Comparable<K>> |
DataSet.partitionCustom(org.apache.flink.api.common.functions.Partitioner<K> partitioner,
KeySelector<T,K> keyExtractor)
Partitions a DataSet on the key returned by the selector, using a custom partitioner.
|
| Modifier and Type | Method and Description |
|---|---|
KeySelector<T,K> |
Keys.SelectorFunctionKeys.getKeyExtractor() |
| Modifier and Type | Method and Description |
|---|---|
<K> JoinOperator.DefaultJoin<I1,I2> |
JoinOperator.JoinOperatorSets.JoinOperatorSetsPredicate.equalTo(KeySelector<I2,K> keySelector)
Continues a Join transformation and defines a
KeySelector function for the second join DataSet.
The KeySelector function is called for each element of the second DataSet and extracts a single
key value on which the DataSet is joined. |
<K> CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate.CoGroupOperatorWithoutFunction |
CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate.equalTo(KeySelector<I2,K> keyExtractor)
Continues a CoGroup transformation and defines a
KeySelector function for the second co-grouped DataSet.
The KeySelector function is called for each element of the second DataSet and extracts a single
key value on which the DataSet is grouped. |
<K> SortedGrouping<T> |
UnsortedGrouping.sortGroup(KeySelector<T,K> keySelector,
org.apache.flink.api.common.operators.Order order)
Sorts elements within a group on a key extracted by the specified
KeySelector
in the specified Order.
Chaining UnsortedGrouping.sortGroup(KeySelector, Order) calls is not supported. |
<K> JoinOperator.JoinOperatorSets.JoinOperatorSetsPredicate |
JoinOperator.JoinOperatorSets.where(KeySelector<I1,K> keySelector)
Continues a Join transformation and defines a
KeySelector function for the first join DataSet.
The KeySelector function is called for each element of the first DataSet and extracts a single
key value on which the DataSet is joined. |
<K> CoGroupOperator.CoGroupOperatorSets.CoGroupOperatorSetsPredicate |
CoGroupOperator.CoGroupOperatorSets.where(KeySelector<I1,K> keyExtractor)
Continues a CoGroup transformation and defines a
KeySelector function for the first co-grouped DataSet.
The KeySelector function is called for each element of the first DataSet and extracts a single
key value on which the DataSet is grouped. |
| Constructor and Description |
|---|
SelectorFunctionKeys(KeySelector<T,K> keyExtractor,
org.apache.flink.api.common.typeinfo.TypeInformation<T> inputType,
org.apache.flink.api.common.typeinfo.TypeInformation<K> keyType) |
| Constructor and Description |
|---|
KeyExtractingMapper(KeySelector<T,K> keySelector) |
TwoKeyExtractingMapper(KeySelector<T,K1> keySelector1,
KeySelector<T,K2> keySelector2) |
TwoKeyExtractingMapper(KeySelector<T,K1> keySelector1,
KeySelector<T,K2> keySelector2) |
| Modifier and Type | Method and Description |
|---|---|
static <IN,OUT> org.apache.flink.api.common.typeinfo.TypeInformation<OUT> |
TypeExtractor.getKeySelectorTypes(KeySelector<IN,OUT> selectorInterface,
org.apache.flink.api.common.typeinfo.TypeInformation<IN> inType) |
static <IN,OUT> org.apache.flink.api.common.typeinfo.TypeInformation<OUT> |
TypeExtractor.getKeySelectorTypes(KeySelector<IN,OUT> selectorInterface,
org.apache.flink.api.common.typeinfo.TypeInformation<IN> inType,
String functionName,
boolean allowMissing) |
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.