Package org.apache.beam.fn.harness
Class WindowMergingFnRunner<T,W extends org.apache.beam.sdk.transforms.windowing.BoundedWindow>
- java.lang.Object
-
- org.apache.beam.fn.harness.WindowMergingFnRunner<T,W>
-
public abstract class WindowMergingFnRunner<T,W extends org.apache.beam.sdk.transforms.windowing.BoundedWindow> extends java.lang.ObjectMerges windows using aWindowFn.Window merging function:
- Input:
KV<nonce, iterable<OriginalWindow>> - Output:
KV<nonce, KV<iterable<UnmergedOriginalWindow>, iterable<KV<MergedWindow, iterable<ConsumedOriginalWindow>>>>
For each set of original windows, a list of all unmerged windows is output alongside a map of merged window to set of consumed windows. All original windows must be contained in either the unmerged original window set or one of the consumed original window sets. Each original window can only be part of one output set. The nonce is used by a runner to associate each input with its output. The nonce is represented as an opaque set of bytes.
- Input:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindowMergingFnRunner.RegistrarA registrar which provides a factory to handle merging windows based upon theWindowFn.
-
Constructor Summary
Constructors Constructor Description WindowMergingFnRunner()
-