public static class IntegerDBID.DynamicSerializer extends java.lang.Object implements ByteBufferSerializer<DBID>
Constructor and Description |
---|
DynamicSerializer()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DBID |
fromByteBuffer(java.nio.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(java.nio.ByteBuffer buffer,
DBID object)
Serialize the object to a byte array (e.g. disk)
|
public DynamicSerializer()
public DBID fromByteBuffer(java.nio.ByteBuffer buffer) throws java.io.IOException
ByteBufferSerializer
fromByteBuffer
in interface ByteBufferSerializer<DBID>
buffer
- Data array to processjava.io.IOException
- on IO errorspublic void toByteBuffer(java.nio.ByteBuffer buffer, DBID object) throws java.io.IOException
ByteBufferSerializer
toByteBuffer
in interface ByteBufferSerializer<DBID>
buffer
- Buffer to serialize toobject
- Object to serializejava.io.IOException
- on IO errorspublic int getByteSize(DBID object) throws java.io.IOException
ByteBufferSerializer
getByteSize
in interface ByteBufferSerializer<DBID>
object
- Object to serializejava.io.IOException
- on IO errorsCopyright © 2019 ELKI Development Team. License information.