public class WindowFnTestUtils
extends java.lang.Object
WindowFns.| Constructor and Description |
|---|
WindowFnTestUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T,W extends BoundedWindow> |
runWindowFn(WindowFn<T,W> windowFn,
java.util.List<java.lang.Long> timestamps)
Runs the
WindowFn over the provided input, returning a map
of windows to the timestamps in those windows. |
static java.util.Set<java.lang.String> |
set(long... timestamps)
Creates a Set of elements to be used as expected output in
runWindowFn(com.google.cloud.dataflow.sdk.transforms.windowing.WindowFn<T, W>, java.util.List<java.lang.Long>). |
public static java.util.Set<java.lang.String> set(long... timestamps)
runWindowFn(com.google.cloud.dataflow.sdk.transforms.windowing.WindowFn<T, W>, java.util.List<java.lang.Long>).public static <T,W extends BoundedWindow> java.util.Map<W,java.util.Set<java.lang.String>> runWindowFn(WindowFn<T,W> windowFn, java.util.List<java.lang.Long> timestamps) throws java.lang.Exception
WindowFn over the provided input, returning a map
of windows to the timestamps in those windows.java.lang.Exception