I
- Type of the input of the iterationF
- Type of the feedback of the iteration@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) |
Modifier and Type | Method and Description |
---|---|
DataStream<F> |
closeWith(DataStream<F> feedbackStream)
Closes the iteration.
|
ConnectedStreams<I,F> |
keyBy(int[] keyPositions1,
int[] keyPositions2)
KeyBy operation for connected data stream.
|
ConnectedStreams<I,F> |
keyBy(KeySelector<I,?> keySelector1,
KeySelector<F,?> keySelector2)
KeyBy operation for connected data stream.
|
ConnectedStreams<I,F> |
keyBy(String[] fields1,
String[] fields2)
KeyBy operation for connected data stream using key expressions.
|
ConnectedStreams<I,F> |
keyBy(String field1,
String field2)
KeyBy operation for connected data stream using key expressions.
|
flatMap, getExecutionEnvironment, getFirstInput, getSecondInput, getType1, getType2, keyBy, map, 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 ConnectedStreams<I,F> keyBy(KeySelector<I,?> keySelector1, KeySelector<F,?> 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
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.