public class SparkGroupAlsoByWindowViaOutputBufferFn<K,InputT,W extends BoundedWindow> extends Object implements org.apache.spark.api.java.function.FlatMapFunction<WindowedValue<KV<K,Iterable<WindowedValue<InputT>>>>,WindowedValue<KV<K,Iterable<InputT>>>>
GroupByKeyViaGroupByKeyOnly.GroupAlsoByWindow
for the Spark runner.| Constructor and Description |
|---|
SparkGroupAlsoByWindowViaOutputBufferFn(WindowingStrategy<?,W> windowingStrategy,
StateInternalsFactory<K> stateInternalsFactory,
SystemReduceFn<K,InputT,Iterable<InputT>,Iterable<InputT>,W> reduceFn,
SparkRuntimeContext runtimeContext,
org.apache.spark.Accumulator<NamedAggregators> accumulator) |
| Modifier and Type | Method and Description |
|---|---|
Iterable<WindowedValue<KV<K,Iterable<InputT>>>> |
call(WindowedValue<KV<K,Iterable<WindowedValue<InputT>>>> windowedValue) |
public SparkGroupAlsoByWindowViaOutputBufferFn(WindowingStrategy<?,W> windowingStrategy, StateInternalsFactory<K> stateInternalsFactory, SystemReduceFn<K,InputT,Iterable<InputT>,Iterable<InputT>,W> reduceFn, SparkRuntimeContext runtimeContext, org.apache.spark.Accumulator<NamedAggregators> accumulator)
public Iterable<WindowedValue<KV<K,Iterable<InputT>>>> call(WindowedValue<KV<K,Iterable<WindowedValue<InputT>>>> windowedValue) throws Exception
call in interface org.apache.spark.api.java.function.FlatMapFunction<WindowedValue<KV<K,Iterable<WindowedValue<InputT>>>>,WindowedValue<KV<K,Iterable<InputT>>>>ExceptionCopyright © 2016–2017 The Apache Software Foundation. All rights reserved.