|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IFixedDataRecord
Interface adds some methods for stream-based access to IDataRecord.
Note: These methods are isolated on this interface to prevent confusion with
the stream-based semantics of the ByteArrayBuffer.
| Method Summary | |
|---|---|
DataInputBuffer |
getDataInput()
Return an input stream that will read from the slice. |
it.unimi.dsi.io.InputBitStream |
getInputBitStream()
Return a bit stream that will read from the slice. |
void |
writeOn(DataOutput out)
Write the slice on the output stream. |
void |
writeOn(OutputStream os)
Write the slice on the output stream. |
void |
writeOn(OutputStream os,
int aoff,
int alen)
Write part of the slice on the output stream. |
| Methods inherited from interface com.bigdata.io.IDataRecord |
|---|
asByteBuffer, get, get, getBit, getByte, getDouble, getFloat, getInt, getLong, getShort, put, put, putByte, putDouble, putFloat, putInt, putLong, putShort, setBit, slice, toByteArray |
| Methods inherited from interface com.bigdata.io.IByteArraySlice |
|---|
array, len, off |
| Method Detail |
|---|
DataInputBuffer getDataInput()
it.unimi.dsi.io.InputBitStream getInputBitStream()
Note: You DO NOT need to close this stream since it is backed by a
byte[]. In fact, InputBitStream.close() when backed by a byte[]
appears to have relatively high overhead, which is weird.
void writeOn(OutputStream os)
throws IOException
os - The output stream.
IOException
void writeOn(DataOutput out)
throws IOException
os - The output stream.
IOException
void writeOn(OutputStream os,
int aoff,
int alen)
throws IOException
os - The output stream.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||