Class StreamProjection<IN>
- java.lang.Object
-
- org.apache.flink.streaming.api.datastream.StreamProjection<IN>
-
@PublicEvolving public class StreamProjection<IN> extends Object
The result ofDataStream.project(int...)
. This can be used to add more fields to the projection.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StreamProjection(DataStream<IN> dataStream, int[] fieldIndexes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TypeInformation<?>[]
extractFieldTypes(int[] fields, TypeInformation<?> inType)
<T0> SingleOutputStreamOperator<Tuple1<T0>>
projectTuple1()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9>
SingleOutputStreamOperator<Tuple10<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9>>projectTuple10()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>
SingleOutputStreamOperator<Tuple11<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>>projectTuple11()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>
SingleOutputStreamOperator<Tuple12<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>>projectTuple12()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>
SingleOutputStreamOperator<Tuple13<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>>projectTuple13()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>
SingleOutputStreamOperator<Tuple14<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>>projectTuple14()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>
SingleOutputStreamOperator<Tuple15<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>>projectTuple15()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>
SingleOutputStreamOperator<Tuple16<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>>projectTuple16()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16>
SingleOutputStreamOperator<Tuple17<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16>>projectTuple17()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17>
SingleOutputStreamOperator<Tuple18<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17>>projectTuple18()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18>
SingleOutputStreamOperator<Tuple19<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18>>projectTuple19()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1>
SingleOutputStreamOperator<Tuple2<T0,T1>>projectTuple2()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19>
SingleOutputStreamOperator<Tuple20<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19>>projectTuple20()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20>
SingleOutputStreamOperator<Tuple21<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20>>projectTuple21()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21>
SingleOutputStreamOperator<Tuple22<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21>>projectTuple22()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22>
SingleOutputStreamOperator<Tuple23<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22>>projectTuple23()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23>
SingleOutputStreamOperator<Tuple24<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23>>projectTuple24()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24>
SingleOutputStreamOperator<Tuple25<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24>>projectTuple25()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2>
SingleOutputStreamOperator<Tuple3<T0,T1,T2>>projectTuple3()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3>
SingleOutputStreamOperator<Tuple4<T0,T1,T2,T3>>projectTuple4()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4>
SingleOutputStreamOperator<Tuple5<T0,T1,T2,T3,T4>>projectTuple5()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5>
SingleOutputStreamOperator<Tuple6<T0,T1,T2,T3,T4,T5>>projectTuple6()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6>
SingleOutputStreamOperator<Tuple7<T0,T1,T2,T3,T4,T5,T6>>projectTuple7()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6,T7>
SingleOutputStreamOperator<Tuple8<T0,T1,T2,T3,T4,T5,T6,T7>>projectTuple8()
Projects aTuple
DataStream
to the previously selected fields.<T0,T1,T2,T3,T4,T5,T6,T7,T8>
SingleOutputStreamOperator<Tuple9<T0,T1,T2,T3,T4,T5,T6,T7,T8>>projectTuple9()
Projects aTuple
DataStream
to the previously selected fields.<OUT extends Tuple>
SingleOutputStreamOperator<OUT>projectTupleX()
Chooses a projectTupleX according to the length offieldIndexes
.
-
-
-
Constructor Detail
-
StreamProjection
protected StreamProjection(DataStream<IN> dataStream, int[] fieldIndexes)
-
-
Method Detail
-
projectTupleX
public <OUT extends Tuple> SingleOutputStreamOperator<OUT> projectTupleX()
Chooses a projectTupleX according to the length offieldIndexes
.- Returns:
- The projected DataStream.
- See Also:
org.apache.flink.api.java.operators.ProjectOperator.Projection
-
projectTuple1
public <T0> SingleOutputStreamOperator<Tuple1<T0>> projectTuple1()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple2
public <T0,T1> SingleOutputStreamOperator<Tuple2<T0,T1>> projectTuple2()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple3
public <T0,T1,T2> SingleOutputStreamOperator<Tuple3<T0,T1,T2>> projectTuple3()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple4
public <T0,T1,T2,T3> SingleOutputStreamOperator<Tuple4<T0,T1,T2,T3>> projectTuple4()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple5
public <T0,T1,T2,T3,T4> SingleOutputStreamOperator<Tuple5<T0,T1,T2,T3,T4>> projectTuple5()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple6
public <T0,T1,T2,T3,T4,T5> SingleOutputStreamOperator<Tuple6<T0,T1,T2,T3,T4,T5>> projectTuple6()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple7
public <T0,T1,T2,T3,T4,T5,T6> SingleOutputStreamOperator<Tuple7<T0,T1,T2,T3,T4,T5,T6>> projectTuple7()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple8
public <T0,T1,T2,T3,T4,T5,T6,T7> SingleOutputStreamOperator<Tuple8<T0,T1,T2,T3,T4,T5,T6,T7>> projectTuple8()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple9
public <T0,T1,T2,T3,T4,T5,T6,T7,T8> SingleOutputStreamOperator<Tuple9<T0,T1,T2,T3,T4,T5,T6,T7,T8>> projectTuple9()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple10
public <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9> SingleOutputStreamOperator<Tuple10<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9>> projectTuple10()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple11
public <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> SingleOutputStreamOperator<Tuple11<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>> projectTuple11()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple12
public <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11> SingleOutputStreamOperator<Tuple12<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>> projectTuple12()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple13
public <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12> SingleOutputStreamOperator<Tuple13<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>> projectTuple13()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple14
public <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13> SingleOutputStreamOperator<Tuple14<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>> projectTuple14()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple15
public <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14> SingleOutputStreamOperator<Tuple15<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>> projectTuple15()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple16
public <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15> SingleOutputStreamOperator<Tuple16<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>> projectTuple16()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple17
public <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16> SingleOutputStreamOperator<Tuple17<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16>> projectTuple17()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple18
public <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17> SingleOutputStreamOperator<Tuple18<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17>> projectTuple18()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple19
public <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18> SingleOutputStreamOperator<Tuple19<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18>> projectTuple19()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple20
public <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19> SingleOutputStreamOperator<Tuple20<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19>> projectTuple20()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple21
public <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20> SingleOutputStreamOperator<Tuple21<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20>> projectTuple21()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple22
public <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21> SingleOutputStreamOperator<Tuple22<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21>> projectTuple22()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple23
public <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22> SingleOutputStreamOperator<Tuple23<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22>> projectTuple23()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple24
public <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23> SingleOutputStreamOperator<Tuple24<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23>> projectTuple24()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
projectTuple25
public <T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24> SingleOutputStreamOperator<Tuple25<T0,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24>> projectTuple25()
Projects aTuple
DataStream
to the previously selected fields.- Returns:
- The projected DataStream.
- See Also:
Tuple
,DataStream
-
extractFieldTypes
public static TypeInformation<?>[] extractFieldTypes(int[] fields, TypeInformation<?> inType)
-
-