public class SparkKeyedCombineFn<K,InputT,AccumT,OutputT> extends SparkAbstractCombineFn
CombineFnBase.GlobalCombineFn
with a CombineWithContext.Context for the SparkRunner.runtimeContext, sideInputs, windowingStrategy| Constructor and Description |
|---|
SparkKeyedCombineFn(CombineWithContext.CombineFnWithContext<InputT,AccumT,OutputT> combineFn,
SparkRuntimeContext runtimeContext,
Map<TupleTag<?>,KV<WindowingStrategy<?,?>,SideInputBroadcast<?>>> sideInputs,
WindowingStrategy<?,?> windowingStrategy) |
| Modifier and Type | Method and Description |
|---|---|
OutputT |
apply(WindowedValue<KV<K,Iterable<InputT>>> windowedKv)
Applying the combine function directly on a key's grouped values - post grouping.
|
ctxtForInput, isIntersecting, merge, sortByWindowspublic SparkKeyedCombineFn(CombineWithContext.CombineFnWithContext<InputT,AccumT,OutputT> combineFn, SparkRuntimeContext runtimeContext, Map<TupleTag<?>,KV<WindowingStrategy<?,?>,SideInputBroadcast<?>>> sideInputs, WindowingStrategy<?,?> windowingStrategy)
Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.