W - The kind of windows being tracked.public abstract class NonEmptyPanes<W extends BoundedWindow> extends Object
| Constructor and Description |
|---|
NonEmptyPanes() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
clearPane(ReduceFn.Context context)
Record that the given pane is empty.
|
static <W extends BoundedWindow> |
create(WindowingStrategy<?,W> strategy,
ReduceFn<?,?,?,W> reduceFn) |
abstract StateContents<Boolean> |
isEmpty(ReduceFn.Context context)
Return true if the current pane for the window in
context is non-empty. |
abstract void |
recordContent(ReduceFn.Context context)
Record that some content has been added to the window in
context, and therefore the
current pane is not empty. |
public static <W extends BoundedWindow> NonEmptyPanes<W> create(WindowingStrategy<?,W> strategy, ReduceFn<?,?,?,W> reduceFn)
public abstract void recordContent(ReduceFn.Context context)
context, and therefore the
current pane is not empty.public abstract void clearPane(ReduceFn.Context context)
public abstract StateContents<Boolean> isEmpty(ReduceFn.Context context)
context is non-empty.