java.lang.Object
org.apache.flink.streaming.api.functions.windowing.delta.extractor.FieldFromArray<OUT>
Type Parameters:
OUT - The type of the extracted field.
All Implemented Interfaces:
Serializable, Extractor<Object,OUT>

@Internal public class FieldFromArray<OUT> extends Object implements Extractor<Object,OUT>
Extracts a single field out of an array.
See Also:
  • Constructor Details

    • FieldFromArray

      public FieldFromArray()
      Extracts the first field (id 0) from the array.
    • FieldFromArray

      public FieldFromArray(int fieldId)
      Extracts the field with the given id from the array.
      Parameters:
      fieldId - The id of the field which will be extracted from the array.
  • Method Details

    • extract

      public OUT extract(Object in)
      Description copied from interface: Extractor
      Extracts/Converts the given input to an object of the output type.
      Specified by:
      extract in interface Extractor<Object,OUT>
      Parameters:
      in - the input data
      Returns:
      the extracted/converted data