org.rrd4j.core.jrrd
Class DataChunk

java.lang.Object
  extended by 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

Method Summary
 double[][] getData()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.

Overrides:
toString in class Object
Returns:
a summary of the contents of this data chunk.

getData

public double[][] getData()
Returns:
the data

toPlottable

public Plottable toPlottable(String name)
Extract a datasource from the datachunck given is name as a Plottable

Parameters:
name - the datasource name
Returns:
a plottable for the datasource


Copyright © 2011. All Rights Reserved.