public final class EmptyDataset extends SeriesDataset
EmptyDataset is the starting point for any of the other SeriesDataset implementations.
When first point is added to the EmptyDataset it becomes a ConstantDataset.
EmptyDataset are initialised with a capacity so it can be passed on as the set eventually evolves
into a PartialDataset which has a capacity() limit.| Constructor and Description |
|---|
EmptyDataset(String instance,
Series series,
int capacity) |
| Modifier and Type | Method and Description |
|---|---|
SeriesDataset |
add(long time,
long value) |
int |
capacity() |
int |
estimatedBytesMemory() |
long |
firstTime() |
long |
getObservedMax() |
long |
getObservedMin() |
BigInteger |
getObservedSum() |
int |
getObservedValueChanges()
Note that minimum is 1 (changing from unknown to know value).
|
int |
getStableCount() |
long |
getStableSince() |
boolean |
isOutdated() |
long |
lastTime() |
long |
lastValue() |
long[] |
points()
Example:
|
int |
size() |
equals, getInstance, getObservedAvg, getObservedSince, getObservedValues, getSeries, hashCode, isStable, isStableZero, perSecond, toStringpublic int getObservedValueChanges()
SeriesDatasetgetObservedValueChanges in class SeriesDatasetpublic long[] points()
SeriesDataset[t0, v0, t1, v1, t2, v2]
points in class SeriesDatasetpublic SeriesDataset add(long time, long value)
add in class SeriesDatasetpublic long getObservedMin()
getObservedMin in class SeriesDatasetLong.MAX_VALUE.public long getObservedMax()
getObservedMax in class SeriesDatasetLong.MIN_VALUE.public BigInteger getObservedSum()
getObservedSum in class SeriesDatasetpublic long getStableSince()
getStableSince in class SeriesDatasetSeriesDataset.lastValue().public int getStableCount()
getStableCount in class SeriesDatasetSeriesDataset.lastValue()public boolean isOutdated()
isOutdated in class SeriesDatasetpublic int size()
size in class SeriesDatasetpublic long lastValue()
lastValue in class SeriesDatasetSeriesDataset.points()public long firstTime()
firstTime in class SeriesDatasetSeriesDataset.points()public long lastTime()
lastTime in class SeriesDatasetSeriesDataset.points()public int capacity()
capacity in class SeriesDatasetpublic int estimatedBytesMemory()
estimatedBytesMemory in class SeriesDatasetCopyright © 2019. All rights reserved.