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,
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(KeySelector<I,KEY> keySelector1,
KeySelector<F,KEY> keySelector2)
Deprecated.
KeyBy operation for connected data stream.
|
<KEY> ConnectedStreams<I,F> |
keyBy(KeySelector<I,KEY> keySelector1,
KeySelector<F,KEY> keySelector2,
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. the elements of input1 and
input2 according to fields1 and fields2.
|
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, transform
public ConnectedIterativeStreams(DataStream<I> input, 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)
ConnectedStreams
keyBy
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.ConnectedStreams
public ConnectedStreams<I,F> keyBy(String field1, String field2)
ConnectedStreams
DataStream
S 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 inputConnectedStreams
public ConnectedStreams<I,F> keyBy(String[] fields1, String[] fields2)
ConnectedStreams
DataStream
S 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 inputConnectedStreams
public <KEY> ConnectedStreams<I,F> keyBy(KeySelector<I,KEY> keySelector1, KeySelector<F,KEY> keySelector2)
ConnectedStreams
keyBy
in class ConnectedStreams<I,F>
keySelector1
- The KeySelector
used for grouping the first inputkeySelector2
- The KeySelector
used for grouping the second inputConnectedStreams
public <KEY> ConnectedStreams<I,F> keyBy(KeySelector<I,KEY> keySelector1, KeySelector<F,KEY> keySelector2, TypeInformation<KEY> keyType)
ConnectedStreams
keyBy
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.ConnectedStreams
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.