edu.unh.sdb.datasource
Class OneDDataSink
java.lang.Object
edu.unh.sdb.datasource.DataSink
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentOffset
protected int currentOffset
OneDDataSink
public OneDDataSink(java.lang.String filename,
RecordDescriptor rd)
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