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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmerge(W mergeResult, R toBeMerged)Specifies that states of the given windows or slices should be merged into the result window or slice.
-
-
-
Method Detail
-
merge
void merge(@Nullable W mergeResult, R toBeMerged) throws ExceptionSpecifies 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
-
-