Class MapBundleFunction<K,V,IN,OUT>

java.lang.Object
org.apache.flink.table.runtime.operators.bundle.MapBundleFunction<K,V,IN,OUT>
Type Parameters:
K - The type of the key in the bundle map
V - The type of the value in the bundle map
IN - Type of the input elements.
OUT - Type of the returned elements.
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.functions.Function
Direct Known Subclasses:
MiniBatchGlobalGroupAggFunction, MiniBatchGroupAggFunction, MiniBatchIncrementalGroupAggFunction, MiniBatchLocalGroupAggFunction, ProcTimeMiniBatchDeduplicateKeepFirstRowFunction, ProcTimeMiniBatchDeduplicateKeepLastRowFunction, RowTimeMiniBatchDeduplicateFunction, RowTimeMiniBatchLatestChangeDeduplicateFunction

public abstract class MapBundleFunction<K,V,IN,OUT> extends Object implements org.apache.flink.api.common.functions.Function
Basic interface for map bundle processing.
See Also:
  • Field Details

  • Constructor Details

    • MapBundleFunction

      public MapBundleFunction()
  • Method Details

    • open

      public void open(ExecutionContext ctx) throws Exception
      Throws:
      Exception
    • addInput

      public abstract V addInput(@Nullable V value, IN input) throws Exception
      Adds the given input to the given value, returning the new bundle value.
      Parameters:
      value - the existing bundle value, maybe null
      input - the given input, not null
      Throws:
      Exception
    • finishBundle

      public abstract void finishBundle(Map<K,V> buffer, org.apache.flink.util.Collector<OUT> out) throws Exception
      Called when a bundle is finished. Transform a bundle to zero, one, or more output elements.
      Throws:
      Exception
    • close

      public void close() throws Exception
      Throws:
      Exception