public class DataChunk extends Object
| Modifier and Type | Field and 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.
|
| Constructor and Description |
|---|
DataChunk(Map<String,Integer> nameindex,
long startTime,
int startOffset,
int endOffset,
long step,
int dsCount,
int rows) |
| Modifier and Type | Method and Description |
|---|---|
double[][] |
getData()
Getter for the field
data. |
int |
getDsCount() |
int |
getEnd() |
int |
getStart() |
long |
getStep() |
long[] |
getTimestamps()
Getter for the time stamps values.
|
org.rrd4j.data.Plottable |
toPlottable(String name)
Extract a datasource from the datachunck given is name as a Plottable
|
String |
toString()
Returns a summary of the contents of this data chunk.
|
final double[][] data
final int dsCount
final int endOffset
final int startOffset
public double[][] getData()
data.public int getDsCount()
public int getEnd()
public int getStart()
public long getStep()
public long[] getTimestamps()
public org.rrd4j.data.Plottable toPlottable(String name)
name - the datasource name