Package org.rrd4j.core.jrrd
Class DataChunk
- java.lang.Object
-
- org.rrd4j.core.jrrd.DataChunk
-
public class DataChunk extends Object
Models a chunk of result data from an RRDatabase.- Version:
- $Revision: 1.1 $
- Author:
- Ciaran Treanor
-
-
Field Summary
Fields Modifier and Type Field Description (package private) double[][]
data
(package private) int
dsCount
Number of datasources must be equal to number of datasources in file(package private) int
endOffset
Row number offset relative to current row(package private) int
startOffset
Row number offset relative to current row.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[][]
getData()
Getter for the fielddata
.int
getDsCount()
int
getEnd()
int
getStart()
long
getStep()
long[]
getTimestamps()
Getter for the time stamps values.Plottable
toPlottable(String name)
Extract a datasource from the datachunck given is name as a PlottableString
toString()
Returns a summary of the contents of this data chunk.
-
-
-
Method Detail
-
toString
public String toString()
Returns a summary of the contents of this data chunk. The first column is the time (RRD format) and the following columns are the data source values.
-
getStart
public int getStart()
-
getEnd
public int getEnd()
-
getStep
public long getStep()
-
getDsCount
public int getDsCount()
-
getData
public double[][] getData()
Getter for the field
data
.- Returns:
- the data
-
getTimestamps
public long[] getTimestamps()
Getter for the time stamps values.
- Returns:
- array of time stamps in seconds
-
-