Class FieldsFromTuple
java.lang.Object
org.apache.flink.streaming.api.functions.windowing.delta.extractor.FieldsFromTuple
- All Implemented Interfaces:
Serializable,Extractor<org.apache.flink.api.java.tuple.Tuple,double[]>
@Internal
public class FieldsFromTuple
extends Object
implements Extractor<org.apache.flink.api.java.tuple.Tuple,double[]>
Extracts one or more fields of the type Double from a tuple and puts them into a new double[].
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFieldsFromTuple(int... indexes) Extracts one or more fields of the type Double from a tuple and puts them into a new double[] (in the specified order). -
Method Summary
Modifier and TypeMethodDescriptiondouble[]extract(org.apache.flink.api.java.tuple.Tuple in) Extracts/Converts the given input to an object of the output type.
-
Constructor Details
-
FieldsFromTuple
public FieldsFromTuple(int... indexes) Extracts one or more fields of the type Double from a tuple and puts them into a new double[] (in the specified order).- Parameters:
indexes- The indexes of the fields to be extracted.
-
-
Method Details
-
extract
public double[] extract(org.apache.flink.api.java.tuple.Tuple in) Description copied from interface:ExtractorExtracts/Converts the given input to an object of the output type.
-