public final class WindowingHelpers
extends java.lang.Object
Constructor and Description |
---|
WindowingHelpers() |
Modifier and Type | Method and Description |
---|---|
static <T,W extends BoundedWindow> |
assignWindowsMapFunction(WindowFn<T,W> windowFn) |
static <T,W extends BoundedWindow> |
skipAssignWindows(Window.Assign<T> transform,
TranslationContext context)
Checks if the window transformation should be applied or skipped.
|
public static <T,W extends BoundedWindow> boolean skipAssignWindows(Window.Assign<T> transform, TranslationContext context)
Avoid running assign windows if both source and destination are global window or if the user has not specified the WindowFn (meaning they are just messing with triggering or allowed lateness).
public static <T,W extends BoundedWindow> org.apache.spark.api.java.function.MapFunction<org.apache.beam.sdk.util.WindowedValue<T>,org.apache.beam.sdk.util.WindowedValue<T>> assignWindowsMapFunction(WindowFn<T,W> windowFn)