public static class IntegerDBID.DynamicSerializer extends Object implements ByteBufferSerializer<DBID>
Constructor and Description |
---|
IntegerDBID.DynamicSerializer()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DBID |
fromByteBuffer(ByteBuffer buffer)
Deserialize an object from a byte buffer (e.g. disk)
|
int |
getByteSize(DBID object)
Get the size of the object in bytes.
|
void |
toByteBuffer(ByteBuffer buffer,
DBID object)
Serialize the object to a byte array (e.g. disk)
|
public IntegerDBID.DynamicSerializer()
public DBID fromByteBuffer(ByteBuffer buffer) throws UnsupportedOperationException
ByteBufferSerializer
fromByteBuffer
in interface ByteBufferSerializer<DBID>
buffer
- Data array to processUnsupportedOperationException
- When functionality not implemented or
availablepublic void toByteBuffer(ByteBuffer buffer, DBID object) throws UnsupportedOperationException
ByteBufferSerializer
toByteBuffer
in interface ByteBufferSerializer<DBID>
buffer
- Buffer to serialize toobject
- Object to serializeUnsupportedOperationException
- When functionality not implemented or
availablepublic int getByteSize(DBID object) throws UnsupportedOperationException
ByteBufferSerializer
getByteSize
in interface ByteBufferSerializer<DBID>
object
- Object to serializeUnsupportedOperationException
- When functionality not implemented or
availableCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.