Class FieldsFromArray<OUT>
java.lang.Object
org.apache.flink.streaming.api.functions.windowing.delta.extractor.FieldsFromArray<OUT>
- Type Parameters:
OUT- The type of the output array. If out is set to String, the output of the extractor will be a String[]. If it is set to String[] the output will be String[][].
- All Implemented Interfaces:
Serializable,Extractor<Object,OUT[]>
Extracts multiple fields from an array and puts them into a new array of the specified type.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFieldsFromArray(Class<OUT> clazz, int... indexes) Extracts multiple fields from an array and puts them in the given order into a new array of the specified type. -
Method Summary
-
Constructor Details
-
FieldsFromArray
Extracts multiple fields from an array and puts them in the given order into a new array of the specified type.- Parameters:
clazz- the Class object representing the component type of the new arrayindexes- The indexes of the fields to be extracted. Any order is possible, but not more than 255 fields due to limitations inArray.newInstance(Class, int...).
-
-
Method Details