I - Type of the input of the iterationF - Type of the feedback of the iteration@Deprecated @Public public static class IterativeStream.ConnectedIterativeStreams<I,F> extends ConnectedStreams<I,F>
IterativeStream.ConnectedIterativeStreams represent a start of an iterative part of a streaming
program, where the original input of the iteration and the feedback of the iteration are
connected as in a ConnectedStreams.
The user can distinguish between the two inputs using co-transformation, thus eliminating the need for mapping the inputs and outputs to a common type.
environment, inputStream1, inputStream2| Constructor and Description |
|---|
ConnectedIterativeStreams(DataStream<I> input,
org.apache.flink.api.common.typeinfo.TypeInformation<F> feedbackType,
long waitTime)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
DataStream<F> |
closeWith(DataStream<F> feedbackStream)
Deprecated.
Closes the iteration.
|
ConnectedStreams<I,F> |
keyBy(int[] keyPositions1,
int[] keyPositions2)
Deprecated.
KeyBy operation for connected data stream.
|
<KEY> ConnectedStreams<I,F> |
keyBy(org.apache.flink.api.java.functions.KeySelector<I,KEY> keySelector1,
org.apache.flink.api.java.functions.KeySelector<F,KEY> keySelector2)
Deprecated.
KeyBy operation for connected data stream.
|
<KEY> ConnectedStreams<I,F> |
keyBy(org.apache.flink.api.java.functions.KeySelector<I,KEY> keySelector1,
org.apache.flink.api.java.functions.KeySelector<F,KEY> keySelector2,
org.apache.flink.api.common.typeinfo.TypeInformation<KEY> keyType)
Deprecated.
KeyBy operation for connected data stream.
|
ConnectedStreams<I,F> |
keyBy(String[] fields1,
String[] fields2)
Deprecated.
KeyBy operation for connected data stream using key expressions.
|
ConnectedStreams<I,F> |
keyBy(String field1,
String field2)
Deprecated.
KeyBy operation for connected data stream using key expressions.
|
flatMap, flatMap, getExecutionEnvironment, getFirstInput, getSecondInput, getType1, getType2, keyBy, map, map, process, process, process, process, transform, transformpublic ConnectedIterativeStreams(DataStream<I> input, org.apache.flink.api.common.typeinfo.TypeInformation<F> feedbackType, long waitTime)
public DataStream<F> closeWith(DataStream<F> feedbackStream)
ConnectedStreams.feedbackStream - DataStream that will be used as second input to the
iteration head.public ConnectedStreams<I,F> keyBy(int[] keyPositions1, int[] keyPositions2)
ConnectedStreamskeyBy in class ConnectedStreams<I,F>keyPositions1 - The fields used to group the first input stream.keyPositions2 - The fields used to group the second input stream.ConnectedStreamspublic ConnectedStreams<I,F> keyBy(String field1, String field2)
ConnectedStreamsDataStreamS underlying
type. A dot can be used to drill down into objects, as in "field1.getInnerField2()" .keyBy in class ConnectedStreams<I,F>field1 - The grouping expression for the first inputfield2 - The grouping expression for the second inputConnectedStreamspublic ConnectedStreams<I,F> keyBy(String[] fields1, String[] fields2)
ConnectedStreamsDataStreamS underlying type. A dot
can be used to drill down into objects, as in "field1.getInnerField2()" .keyBy in class ConnectedStreams<I,F>fields1 - The grouping expressions for the first inputfields2 - The grouping expressions for the second inputConnectedStreamspublic <KEY> ConnectedStreams<I,F> keyBy(org.apache.flink.api.java.functions.KeySelector<I,KEY> keySelector1, org.apache.flink.api.java.functions.KeySelector<F,KEY> keySelector2)
ConnectedStreamskeyBy in class ConnectedStreams<I,F>keySelector1 - The KeySelector used for grouping the first inputkeySelector2 - The KeySelector used for grouping the second inputConnectedStreamspublic <KEY> ConnectedStreams<I,F> keyBy(org.apache.flink.api.java.functions.KeySelector<I,KEY> keySelector1, org.apache.flink.api.java.functions.KeySelector<F,KEY> keySelector2, org.apache.flink.api.common.typeinfo.TypeInformation<KEY> keyType)
ConnectedStreamskeyBy in class ConnectedStreams<I,F>keySelector1 - The KeySelector used for grouping the first inputkeySelector2 - The KeySelector used for grouping the second inputkeyType - The type information of the common key type.ConnectedStreamsCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.