Class WindowFn.MergeContext
java.lang.Object
org.apache.beam.sdk.transforms.windowing.WindowFn.MergeContext
- Enclosing class:
 WindowFn<T,W extends BoundedWindow> 
Information available when running 
WindowFn.mergeWindows(org.apache.beam.sdk.transforms.windowing.WindowFn.MergeContext).- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionabstract voidmerge(Collection<W> toBeMerged, W mergeResult) Signals to the framework that the windows intoBeMergedshould be merged together to formmergeResult.abstract Collection<W> windows()Returns the current set of windows. 
- 
Constructor Details
- 
MergeContext
public MergeContext() 
 - 
 - 
Method Details
- 
windows
Returns the current set of windows. - 
merge
Signals to the framework that the windows intoBeMergedshould be merged together to formmergeResult.toBeMergedshould be a subset ofwindows()and disjoint from thetoBeMergedset of previous calls tomerge.mergeResultmust either not be inwindows()or be intoBeMerged.- Throws:
 IllegalArgumentException- if any elements of toBeMerged are not in windows(), or have already been mergedException
 
 -