Interface MergeCallback<W,R>
- Type Parameters:
W- The typeWindowfor windows or the typeLongfor slices that this callback used to merge.R- The result type likeCollectionorIterableto specify which slices or windows should be merged.
- All Known Implementing Classes:
SliceSharedSyncStateWindowAggProcessor
public interface MergeCallback<W,R>
Callback to be used in when merging slices or windows for specifying which slices or windows
should be merged.
-
Method Summary
-
Method Details
-
merge
Specifies that states of the given windows or slices should be merged into the result window or slice.- Parameters:
mergeResult- The resulting merged window or slice,nullif it represents a non-state namespace.toBeMerged- Windows or slices that should be merged into one window or slice.- Throws:
Exception
-