public class EagerSlice<InputType,ValueType> extends AbstractSlice<InputType,ValueType>
Slice.Fixed, Slice.Flexible, Slice.Type| Modifier and Type | Field and Description |
|---|---|
private AggregationState<InputType> |
state |
private WindowManager |
windowManager |
| Constructor and Description |
|---|
EagerSlice(StateFactory stateFactory,
WindowManager windowManager,
long startTs,
long endTs,
Slice.Type type) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(InputType element,
long ts)
Add a element to the slice.
|
AggregationState |
getAggState() |
private final AggregationState<InputType> state
private final WindowManager windowManager
public EagerSlice(StateFactory stateFactory, WindowManager windowManager, long startTs, long endTs, Slice.Type type)
public AggregationState getAggState()
public void addElement(InputType element, long ts)
SliceaddElement in interface Slice<InputType,ValueType>addElement in class AbstractSlice<InputType,ValueType>element - the element which is addedts - timestamp of the element