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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract VAdds 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 Details
-
ctx
-
-
Constructor Details
-
MapBundleFunction
public MapBundleFunction()
-
-
Method Details
-
open
- Throws:
Exception
-
addInput
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 ExceptionCalled when a bundle is finished. Transform a bundle to zero, one, or more output elements.- Throws:
Exception
-
close
- Throws:
Exception
-