public class DataSink
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long[] |
axisWeights |
protected ISBounds |
bounds |
protected int |
datumSize |
protected int |
dimensionality |
protected java.lang.String |
filename |
protected int |
numFields |
protected AxisOrdering |
ordering |
protected java.io.RandomAccessFile |
raFile |
protected RecordDescriptor |
recordDescriptor |
Modifier | Constructor and Description |
---|---|
protected |
DataSink(java.lang.String filename,
RecordDescriptor rd) |
|
DataSink(java.lang.String filename,
RecordDescriptor rd,
ISBounds bounds) |
Modifier and Type | Method and Description |
---|---|
void |
activate() |
protected void |
close() |
protected int |
computeOffset(IndexSpaceID dsid)
Map the IndexSpaceID to a single integer that serves as
as an Datum offset into the physical file or network source.
|
protected int |
computeOffset(int[] coordArray)
Maps an n-dimensional array of coordinates to an Datum offset in file
or array.
|
void |
deactivate() |
ISBounds |
getBounds() |
protected void |
open() |
void |
write(Datum d,
IndexSpaceID id) |
protected java.io.RandomAccessFile raFile
protected java.lang.String filename
protected long[] axisWeights
protected RecordDescriptor recordDescriptor
protected AxisOrdering ordering
protected ISBounds bounds
protected int dimensionality
protected int numFields
protected int datumSize
public DataSink(java.lang.String filename, RecordDescriptor rd, ISBounds bounds)
protected DataSink(java.lang.String filename, RecordDescriptor rd)
public ISBounds getBounds()
public void activate()
public void deactivate()
public void write(Datum d, IndexSpaceID id)
protected void open()
protected void close()
protected final int computeOffset(IndexSpaceID dsid)
IndexSpaceID
- dsidprotected final int computeOffset(int[] coordArray)
int[]
- coordArray