W
- The type Window
for windows or the type Long
for slices that this
callback used to merge.R
- The result type like Collection
or Iterable
to specify which
slices or windows should be merged.public interface MergeCallback<W,R>
Modifier and Type | Method and Description |
---|---|
void |
merge(W mergeResult,
R toBeMerged)
Specifies that states of the given windows or slices should be merged into the result window
or slice.
|
void merge(@Nullable W mergeResult, R toBeMerged) throws Exception
mergeResult
- The resulting merged window or slice, null
if it represents a
non-state namespace.toBeMerged
- Windows or slices that should be merged into one window or slice.Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.