public abstract class SeriesDataset extends Object implements Serializable
SeriesDataset
contains data observed so far for a particular Series
.EmptyDataset
,
ConstantDataset
,
StableDataset
,
PartialDataset
,
Serialized FormConstructor and Description |
---|
SeriesDataset(SeriesDataset predecessor) |
SeriesDataset(Series series,
String instance,
long observedSince,
int observedValues) |
Modifier and Type | Method and Description |
---|---|
abstract SeriesDataset |
add(long time,
long value) |
abstract int |
capacity() |
boolean |
equals(Object obj) |
abstract int |
estimatedBytesMemory() |
abstract long |
firstTime() |
String |
getInstance() |
BigInteger |
getObservedAvg() |
abstract long |
getObservedMax() |
abstract long |
getObservedMin() |
long |
getObservedSince() |
abstract BigInteger |
getObservedSum() |
abstract int |
getObservedValueChanges()
Note that minimum is 1 (changing from unknown to know value).
|
int |
getObservedValues()
The number of times a value was observed since start of collection
|
Series |
getSeries() |
abstract int |
getStableCount() |
abstract long |
getStableSince() |
int |
hashCode() |
abstract boolean |
isOutdated() |
boolean |
isStable() |
boolean |
isStableZero() |
abstract long |
lastTime() |
abstract long |
lastValue() |
static long[] |
perSecond(long[] points)
Converts an array of
points() to one reflecting the change per second. |
abstract long[] |
points()
Example:
|
abstract int |
size() |
String |
toString() |
public SeriesDataset(SeriesDataset predecessor)
public final Series getSeries()
public String getInstance()
public final BigInteger getObservedAvg()
public long getObservedSince()
public final int getObservedValues()
public abstract int getObservedValueChanges()
public abstract long[] points()
[t0, v0, t1, v1, t2, v2]
public abstract SeriesDataset add(long time, long value)
public abstract long getObservedMin()
Long.MAX_VALUE
.public abstract long getObservedMax()
Long.MIN_VALUE
.public abstract BigInteger getObservedSum()
public abstract long getStableSince()
lastValue()
.public abstract int getStableCount()
lastValue()
public abstract boolean isOutdated()
public abstract int size()
public abstract long lastValue()
points()
public abstract long firstTime()
points()
public abstract long lastTime()
points()
public abstract int capacity()
public abstract int estimatedBytesMemory()
public boolean isStable()
public boolean isStableZero()
public static long[] perSecond(long[] points)
points()
to one reflecting the change per second. For each pair of
points this is the delta between the earlier and later point of the pair. Since this is a delta the result array
contains one less point.points
- point data as returned by points()
Copyright © 2019. All rights reserved.