class DataStreamUtils[T](val self: DataStream[T])(implicit evidence$1: TypeInformation[T], evidence$2: ClassTag[T])
This class provides simple utility methods for collecting a DataStream, effectively enriching it with the
functionality encapsulated by DataStreamUtils.
This experimental class is relocated from flink-streaming-contrib.
Reinterprets the given DataStream as a KeyedStream, which extracts keys with the given KeySelector.
Reinterprets the given DataStream as a KeyedStream, which extracts keys with the given KeySelector.
IMPORTANT: For every partition of the base stream, the keys of events in the base stream must be partitioned
exactly in the same way as if it was created through a DataStream#keyBy.
Attributes
keySelector
Function that defines how keys are extracted from the data stream.