public class MiniBatchIncrementalGroupAggFunction extends MapBundleFunction<BaseRow,BaseRow,BaseRow,BaseRow>
ctx| Constructor and Description |
|---|
MiniBatchIncrementalGroupAggFunction(GeneratedAggsHandleFunction genPartialAggsHandler,
GeneratedAggsHandleFunction genFinalAggsHandler,
org.apache.flink.api.java.functions.KeySelector<BaseRow,BaseRow> finalKeySelector) |
| Modifier and Type | Method and Description |
|---|---|
BaseRow |
addInput(BaseRow previousAcc,
BaseRow input)
Adds the given input to the given value, returning the new bundle value.
|
void |
close() |
void |
finishBundle(Map<BaseRow,BaseRow> buffer,
org.apache.flink.util.Collector<BaseRow> out)
Called when a bundle is finished.
|
void |
open(ExecutionContext ctx) |
public MiniBatchIncrementalGroupAggFunction(GeneratedAggsHandleFunction genPartialAggsHandler, GeneratedAggsHandleFunction genFinalAggsHandler, org.apache.flink.api.java.functions.KeySelector<BaseRow,BaseRow> finalKeySelector)
public void open(ExecutionContext ctx) throws Exception
public BaseRow addInput(@Nullable BaseRow previousAcc, BaseRow input) throws Exception
MapBundleFunctionpublic void finishBundle(Map<BaseRow,BaseRow> buffer, org.apache.flink.util.Collector<BaseRow> out) throws Exception
MapBundleFunctionfinishBundle in class MapBundleFunction<BaseRow,BaseRow,BaseRow,BaseRow>ExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.