org.limn.data
Class RAFData

java.lang.Object
  |
  +--org.limn.data.RAFData
All Implemented Interfaces:
LimnData

public class RAFData
extends java.lang.Object
implements LimnData

RAFData implements the LimnData interface. It will only buffer a set number of rows at a time. If a row is requested that is outside of the range, the object will rebuffer to accomodate the request. Beacuse of the large amount of io, this class is very slow to load and use. In most cases if memmory permits the SimpleData class should be used. Some forms of virtual memory may also do a better job of memory management


Constructor Summary
RAFData(java.lang.String name, int b, long[] s, double[][] mm, java.lang.String[] ex, java.lang.String[] col)
          constructor takes the file name, buffer size in rows, the long values that represent locations of each buffered section in the file, minmax values, names of variables to exclude and column names
RAFData(java.lang.String name, int b, java.lang.String[] ex)
          constructor takes the file name, the number of rows to use to buffer the data and any names of variables to exclude from the dataset
 
Method Summary
 java.lang.String getName(int c)
           
 int getNumCol()
           
 int getNumRow()
           
 double[] getRow(int r)
           
 double getValue(int r, int c)
           
 void setActive(java.lang.String[] s)
          setActive will reduce the data to only the rows named in the string array
 void test()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RAFData

public RAFData(java.lang.String name,
               int b,
               java.lang.String[] ex)
constructor takes the file name, the number of rows to use to buffer the data and any names of variables to exclude from the dataset

RAFData

public RAFData(java.lang.String name,
               int b,
               long[] s,
               double[][] mm,
               java.lang.String[] ex,
               java.lang.String[] col)
constructor takes the file name, buffer size in rows, the long values that represent locations of each buffered section in the file, minmax values, names of variables to exclude and column names
Method Detail

getValue

public double getValue(int r,
                       int c)
Specified by:
getValue in interface LimnData

getRow

public double[] getRow(int r)
Specified by:
getRow in interface LimnData

getName

public java.lang.String getName(int c)

getNumRow

public int getNumRow()
Specified by:
getNumRow in interface LimnData

getNumCol

public int getNumCol()
Specified by:
getNumCol in interface LimnData

test

public void test()

setActive

public void setActive(java.lang.String[] s)
Description copied from interface: LimnData
setActive will reduce the data to only the rows named in the string array
Specified by:
setActive in interface LimnData