public static class IntegerDBID.StaticSerializer extends Object implements FixedSizeByteBufferSerializer<DBID>
Modifier | Constructor and Description |
---|---|
protected |
IntegerDBID.StaticSerializer()
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.
|
int |
getFixedByteSize()
Get the fixed size needed by this serializer.
|
void |
toByteBuffer(ByteBuffer buffer,
DBID object)
Serialize the object to a byte array (e.g. disk)
|
protected IntegerDBID.StaticSerializer()
public DBID fromByteBuffer(ByteBuffer buffer) throws UnsupportedOperationException
ByteBufferSerializer
fromByteBuffer
in interface ByteBufferSerializer<DBID>
buffer
- Data array to processUnsupportedOperationException
public void toByteBuffer(ByteBuffer buffer, DBID object) throws UnsupportedOperationException
ByteBufferSerializer
toByteBuffer
in interface ByteBufferSerializer<DBID>
buffer
- Buffer to serialize toobject
- Object to serializeUnsupportedOperationException
public int getByteSize(DBID object) throws UnsupportedOperationException
ByteBufferSerializer
getByteSize
in interface ByteBufferSerializer<DBID>
object
- Object to serializeUnsupportedOperationException
public int getFixedByteSize()
FixedSizeByteBufferSerializer
getFixedByteSize
in interface FixedSizeByteBufferSerializer<DBID>