edu.unh.sdb.datasource
Class OneDDataSink

java.lang.Object
  extended by edu.unh.sdb.datasource.DataSink
      extended by edu.unh.sdb.datasource.OneDDataSink
Direct Known Subclasses:
BufferedOneDDataSink

public class OneDDataSink
extends DataSink

A 1D Datasink. If this class is used, then an IndexSpaceID cannot be passed to the write() method. Datums are simply written one after the other.


Field Summary
protected  int currentOffset
           
 
Fields inherited from class edu.unh.sdb.datasource.DataSink
axisWeights, bounds, datumSize, dimensionality, filename, numFields, ordering, raFile, recordDescriptor
 
Constructor Summary
OneDDataSink(java.lang.String filename, RecordDescriptor rd)
           
 
Method Summary
 void activate()
           
 ISBounds getBounds()
          For OneDDataSinks, this method returns a bounds constructed from the current position of the file pointer.
 void write(Datum d)
           
 void write(Datum d, IndexSpaceID id)
           
 
Methods inherited from class edu.unh.sdb.datasource.DataSink
close, computeOffset, computeOffset, deactivate, open
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentOffset

protected int currentOffset
Constructor Detail

OneDDataSink

public OneDDataSink(java.lang.String filename,
                    RecordDescriptor rd)
Method Detail

activate

public void activate()
Overrides:
activate in class DataSink

write

public void write(Datum d)

write

public void write(Datum d,
                  IndexSpaceID id)
Overrides:
write in class DataSink

getBounds

public ISBounds getBounds()
For OneDDataSinks, this method returns a bounds constructed from the current position of the file pointer. The file pointer may not be at the end of the file, so this value is not always meaningful.

Overrides:
getBounds in class DataSink