|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- Object type processedpublic interface ByteBufferSerializer<T>
Class to convert from and to byte arrays (in index structures)
Method Summary | |
---|---|
T |
fromByteBuffer(ByteBuffer buffer)
Deserialize an object from a byte buffer (e.g. disk) |
int |
getByteSize(T object)
Get the size of the object in bytes. |
void |
toByteBuffer(ByteBuffer buffer,
T object)
Serialize the object to a byte array (e.g. disk) |
Method Detail |
---|
T fromByteBuffer(ByteBuffer buffer) throws IOException, UnsupportedOperationException
buffer
- Data array to process
IOException
UnsupportedOperationException
void toByteBuffer(ByteBuffer buffer, T object) throws IOException, UnsupportedOperationException
buffer
- Buffer to serialize toobject
- Object to serialize
IOException
UnsupportedOperationException
int getByteSize(T object) throws IOException, UnsupportedOperationException
object
- Object to serialize
IOException
UnsupportedOperationException
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |