public class BufferedOneDDataSink extends OneDDataSink
Modifier and Type | Field and Description |
---|---|
protected java.nio.ByteBuffer |
buffer |
protected int |
byteArrayLength |
protected byte[] |
bytes |
currentOffset
axisWeights, bounds, datumSize, dimensionality, filename, numFields, ordering, raFile, recordDescriptor
Constructor and Description |
---|
BufferedOneDDataSink(java.lang.String filename,
RecordDescriptor rd,
int bufferSize)
Constructs a one dimensional Datasink without specifying a bounds for the index space.
|
Modifier and Type | Method and Description |
---|---|
void |
activate() |
void |
deactivate() |
void |
write(Datum d) |
void |
write(Datum d,
IndexSpaceID id) |
protected void |
writeBuffer() |
getBounds
close, computeOffset, computeOffset, open
protected byte[] bytes
protected int byteArrayLength
protected java.nio.ByteBuffer buffer
public BufferedOneDDataSink(java.lang.String filename, RecordDescriptor rd, int bufferSize)
public void activate()
activate
in class OneDDataSink
public void deactivate()
deactivate
in class DataSink
public void write(Datum d, IndexSpaceID id)
write
in class OneDDataSink
public void write(Datum d)
write
in class OneDDataSink
protected void writeBuffer()