java.lang.Object | |
↳ | org.rrd4j.core.RobinMatrix |
Class to represent archive values for a single datasource. Robin class is the heart of the so-called "round robin database" concept. Basically, each Robin object is a fixed length array of double values. Each double value reperesents consolidated, archived value for the specific timestamp. When the underlying array of double values gets completely filled, new values will replace the oldest ones.
Robin object does not hold values in memory - such object could be quite large. Instead of it, Robin reads them from the backend I/O only when necessary.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Copies object's internal state to another Robin object.
| |||||||||||
Filters values stored in this archive based on the given boundary.
| |||||||||||
Returns the Archive object to which this Robin object belongs.
| |||||||||||
Required to implement RrdUpdater interface.
| |||||||||||
Returns the underlying storage (backend) object which actually performs all
I/O operations.
| |||||||||||
Returns the size of the underlying array of archived values.
| |||||||||||
Returns the i-th value from the Robin archive.
| |||||||||||
Fetches all archived values.
| |||||||||||
Sets the i-th value in the Robin archive.
| |||||||||||
Updates archived values in bulk.
| |||||||||||
(Re)sets all values in this archive to the same value.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Copies object's internal state to another Robin object.
other | New Robin object to copy state to |
---|
IOException | Thrown in case of I/O error |
---|
Filters values stored in this archive based on the given boundary.
Archived values found to be outside of [minValue, maxValue]
interval (inclusive)
will be silently replaced with NaN
.
minValue | lower boundary |
---|---|
maxValue | upper boundary |
IOException | Thrown in case of I/O error |
---|
Returns the Archive object to which this Robin object belongs.
Required to implement RrdUpdater interface. You should never call this method directly.
Returns the underlying storage (backend) object which actually performs all I/O operations.
Returns the size of the underlying array of archived values.
Returns the i-th value from the Robin archive.
index | Value index |
---|
IOException | Thrown in case of I/O specific error. |
---|
Fetches all archived values.
IOException | Thrown in case of I/O specific error. |
---|
Sets the i-th value in the Robin archive.
index | index in the archive (the oldest value has zero index) |
---|---|
value | value to be stored |
IOException | Thrown in case of I/O specific error. |
---|
Updates archived values in bulk.
newValues | Array of double values to be stored in the archive |
---|
IOException | Thrown in case of I/O error |
---|---|
IllegalArgumentException | Thrown if the length of the input array is different from the length of this archive |
(Re)sets all values in this archive to the same value.
newValue | New value |
---|
IOException | Thrown in case of I/O error |
---|