edu.unh.sdb.datasource
Class DataSink
java.lang.Object
edu.unh.sdb.datasource.DataSink
- Direct Known Subclasses:
- OneDDataSink
public class DataSink
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
raFile
protected java.io.RandomAccessFile raFile
filename
protected java.lang.String filename
axisWeights
protected long[] axisWeights
recordDescriptor
protected RecordDescriptor recordDescriptor
ordering
protected AxisOrdering ordering
bounds
protected ISBounds bounds
dimensionality
protected int dimensionality
numFields
protected int numFields
datumSize
protected int datumSize
DataSink
public DataSink(java.lang.String filename,
RecordDescriptor rd,
ISBounds bounds)
DataSink
protected DataSink(java.lang.String filename,
RecordDescriptor rd)
getBounds
public ISBounds getBounds()
activate
public void activate()
deactivate
public void deactivate()
write
public void write(Datum d,
IndexSpaceID id)
open
protected void open()
close
protected void close()
computeOffset
protected final int computeOffset(IndexSpaceID dsid)
- Map the IndexSpaceID to a single integer that serves as
as an offset into the physical file or network source.
computeOffset
protected final int computeOffset(int[] coordArray)
- Maps an n-dimensional array of coordinates to a a 1d offset