public class MiniBatchLocalGroupAggFunction extends MapBundleFunction<BaseRow,BaseRow,BaseRow,BaseRow>
ctx
Constructor and Description |
---|
MiniBatchLocalGroupAggFunction(GeneratedAggsHandleFunction genAggsHandler) |
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,
Collector<BaseRow> out)
Called when a bundle is finished.
|
void |
open(ExecutionContext ctx) |
public MiniBatchLocalGroupAggFunction(GeneratedAggsHandleFunction genAggsHandler)
public void open(ExecutionContext ctx) throws Exception
public BaseRow addInput(@Nullable BaseRow previousAcc, BaseRow input) throws Exception
MapBundleFunction
public void finishBundle(Map<BaseRow,BaseRow> buffer, Collector<BaseRow> out) throws Exception
MapBundleFunction
finishBundle
in class MapBundleFunction<BaseRow,BaseRow,BaseRow,BaseRow>
Exception
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.