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

@Internal public class FieldFromTuple<OUT> extends Object implements Extractor<org.apache.flink.api.java.tuple.Tuple,OUT>
Extracts a single field out of a tuple.
See Also:
  • Constructor Details

    • FieldFromTuple

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

    • extract

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