T - The type of elements that this WindowBuffer can store.public interface WindowBuffer<T> extends Serializable
WindowBuffer is used by
WindowOperator to store
the elements of one pane.
A pane is the bucket of elements that have the same key (assigned by the
KeySelector) and same Window. An element can
be in multiple panes of it was assigned to multiple windows by the
WindowAssigner. These panes all
have their own instance of the Evictor.
| Modifier and Type | Method and Description |
|---|---|
Iterable<StreamRecord<T>> |
getElements()
Returns all elements that are currently in the buffer.
|
Iterable<T> |
getUnpackedElements()
Returns all elements that are currently in the buffer.
|
int |
size()
Returns the number of elements that are currently in the buffer.
|
void |
storeElement(StreamRecord<T> element)
Adds the element to the buffer.
|
void storeElement(StreamRecord<T> element) throws Exception
element - The element to add.ExceptionIterable<StreamRecord<T>> getElements()
Iterable<T> getUnpackedElements()
StreamRecord.int size()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.