@Internal public class FieldsFromTuple extends Object implements Extractor<org.apache.flink.api.java.tuple.Tuple,double[]>
| Constructor and Description |
|---|
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).
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
extract(org.apache.flink.api.java.tuple.Tuple in)
Extracts/Converts the given input to an object of the output type.
|
public FieldsFromTuple(int... indexes)
indexes - The indexes of the fields to be extracted.public double[] extract(org.apache.flink.api.java.tuple.Tuple in)
ExtractorCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.