public class SliceManager<InputType>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private AggregationStore<InputType> |
aggregationStore |
private SliceFactory<InputType,?> |
sliceFactory |
private WindowManager |
windowManager |
| Constructor and Description |
|---|
SliceManager(SliceFactory sliceFactory,
AggregationStore<InputType> aggregationStore,
WindowManager windowManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendSlice(long startTs,
Slice.Type type)
Append a new slice.
|
private void |
checkSliceEdges(java.util.Set<WindowModifications> windowModifications) |
void |
processElement(InputType element,
long ts)
Process a tuple and insert it in the correct slice.
|
void |
splitSlice(int sliceIndex,
long timestamp) |
private final SliceFactory<InputType,?> sliceFactory
private final AggregationStore<InputType> aggregationStore
private final WindowManager windowManager
public SliceManager(SliceFactory sliceFactory, AggregationStore<InputType> aggregationStore, WindowManager windowManager)
public void appendSlice(long startTs,
Slice.Type type)
StreamSlicerstartTs - the start timestamp of the new slice or end timestamp of the previous slicetype - the end measure of the previous slicepublic void processElement(InputType element, long ts)
element - the element which is insertedts - the element timestampprivate void checkSliceEdges(java.util.Set<WindowModifications> windowModifications)
public void splitSlice(int sliceIndex,
long timestamp)