Class StreamShuffler<T>
java.lang.Object
org.apache.flink.api.common.functions.AbstractRichFunction
org.apache.flink.api.common.functions.RichFlatMapFunction<T,T>
de.robertmetzger.flink.utils.general.StreamShuffler<T>
- Type Parameters:
T- Type in the stream
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.functions.FlatMapFunction<T,T>,org.apache.flink.api.common.functions.Function,org.apache.flink.api.common.functions.RichFunction
public class StreamShuffler<T>
extends org.apache.flink.api.common.functions.RichFlatMapFunction<T,T>
Shuffle elements in a stream.
Note: This operator does not take watermarks into account.
- See Also:
- Serialized Form
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.flink.api.common.functions.AbstractRichFunction
close, getIterationRuntimeContext, getRuntimeContext, setRuntimeContext
-
Field Details
-
random
-
-
Constructor Details
-
StreamShuffler
public StreamShuffler(int windowSize)
-
-
Method Details
-
open
- Specified by:
openin interfaceorg.apache.flink.api.common.functions.RichFunction- Overrides:
openin classorg.apache.flink.api.common.functions.AbstractRichFunction- Throws:
Exception
-
flatMap
-
getNext
public int getNext(int bound)
-