Class ArrayFromTuple
java.lang.Object
org.apache.flink.streaming.api.functions.windowing.delta.extractor.ArrayFromTuple
- All Implemented Interfaces:
Serializable,Extractor<org.apache.flink.api.java.tuple.Tuple,Object[]>
@Internal
public class ArrayFromTuple
extends Object
implements Extractor<org.apache.flink.api.java.tuple.Tuple,Object[]>
Converts a Tuple to an Object-Array. The field which should be included in the array can selected
and reordered as needed.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUsing this constructor the extractor will convert the whole tuple (all fields in the original order) to an array.ArrayFromTuple(int... indexes) Using this constructor the extractor will combine the fields as specified in the indexes parameter in an object array. -
Method Summary
-
Constructor Details
-
ArrayFromTuple
public ArrayFromTuple()Using this constructor the extractor will convert the whole tuple (all fields in the original order) to an array. -
ArrayFromTuple
public ArrayFromTuple(int... indexes) Using this constructor the extractor will combine the fields as specified in the indexes parameter in an object array.- Parameters:
indexes- the field ids (enumerated from 0)
-
-
Method Details