public class SparkAbstractCombineFn extends Object implements Serializable
Combine.CombineFn.| Modifier and Type | Field and Description |
|---|---|
protected SparkRuntimeContext |
runtimeContext |
protected Map<TupleTag<?>,KV<WindowingStrategy<?,?>,SideInputBroadcast<?>>> |
sideInputs |
protected WindowingStrategy<?,BoundedWindow> |
windowingStrategy |
| Constructor and Description |
|---|
SparkAbstractCombineFn(SparkRuntimeContext runtimeContext,
Map<TupleTag<?>,KV<WindowingStrategy<?,?>,SideInputBroadcast<?>>> sideInputs,
WindowingStrategy<?,?> windowingStrategy) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.beam.runners.spark.translation.SparkAbstractCombineFn.SparkCombineContext |
ctxtForInput(WindowedValue<?> input) |
protected static boolean |
isIntersecting(IntervalWindow union,
IntervalWindow window) |
protected static IntervalWindow |
merge(IntervalWindow union,
IntervalWindow window) |
protected static <T> Iterable<WindowedValue<T>> |
sortByWindows(Iterable<WindowedValue<T>> iter) |
protected final SparkRuntimeContext runtimeContext
protected final Map<TupleTag<?>,KV<WindowingStrategy<?,?>,SideInputBroadcast<?>>> sideInputs
protected final WindowingStrategy<?,BoundedWindow> windowingStrategy
public SparkAbstractCombineFn(SparkRuntimeContext runtimeContext, Map<TupleTag<?>,KV<WindowingStrategy<?,?>,SideInputBroadcast<?>>> sideInputs, WindowingStrategy<?,?> windowingStrategy)
protected org.apache.beam.runners.spark.translation.SparkAbstractCombineFn.SparkCombineContext ctxtForInput(WindowedValue<?> input)
protected static <T> Iterable<WindowedValue<T>> sortByWindows(Iterable<WindowedValue<T>> iter)
protected static boolean isIntersecting(IntervalWindow union, IntervalWindow window)
protected static IntervalWindow merge(IntervalWindow union, IntervalWindow window)
Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.