Class KeyByKeySelector
java.lang.Object
org.apache.flink.streaming.api.functions.python.KeyByKeySelector
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.Function,org.apache.flink.api.java.functions.KeySelector<org.apache.flink.types.Row,org.apache.flink.types.Row>
@Internal
public class KeyByKeySelector
extends Object
implements org.apache.flink.api.java.functions.KeySelector<org.apache.flink.types.Row,org.apache.flink.types.Row>
KeyByKeySelector is responsible for extracting the first field of the input row as key.
The input row is generated by python DataStream map function in the format of
(key_selector.get_key(value), value) tuple2.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.types.RowgetKey(org.apache.flink.types.Row value)
-
Constructor Details
-
KeyByKeySelector
public KeyByKeySelector()
-
-
Method Details
-
getKey
public org.apache.flink.types.Row getKey(org.apache.flink.types.Row value) - Specified by:
getKeyin interfaceorg.apache.flink.api.java.functions.KeySelector<org.apache.flink.types.Row,org.apache.flink.types.Row>
-