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 mapV- The type of the value in the bundle mapIN- 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ExecutionContextctx
-
Constructor Summary
Constructors Constructor Description MapBundleFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract VaddInput(V value, IN input)Adds the given input to the given value, returning the new bundle value.voidclose()abstract voidfinishBundle(Map<K,V> buffer, org.apache.flink.util.Collector<OUT> out)Called when a bundle is finished.voidopen(ExecutionContext ctx)
-
-
-
Field Detail
-
ctx
protected transient ExecutionContext ctx
-
-
Method Detail
-
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 nullinput- 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
-
-