public interface Slice<InputType,ValueType>
| Modifier and Type | Interface and Description |
|---|---|
static class |
Slice.Fixed |
static class |
Slice.Flexible |
static interface |
Slice.Type |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(InputType element,
long ts)
Add a element to the slice.
|
AggregationState |
getAggState() |
long |
getTEnd() |
long |
getTFirst()
timestamp of the first record in the slice
|
long |
getTLast()
timestamp of the last record in the slice
|
long |
getTStart() |
Slice.Type |
getType()
The measure of the slice end.
|
void |
merge(Slice otherSlice) |
void |
setTEnd(long tEnd) |
void |
setTStart(long tStart) |
void |
setType(Slice.Type type)
Set the end of the slice
|
long getTStart()
void setTStart(long tStart)
long getTEnd()
void setTEnd(long tEnd)
long getTFirst()
void merge(Slice otherSlice)
long getTLast()
Slice.Type getType()
void setType(Slice.Type type)
type - of slice endAggregationState getAggState()
void addElement(InputType element, long ts)
element - the element which is addedts - timestamp of the element