|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.database.ids.integer.IntegerDBID.DynamicSerializer
public static class IntegerDBID.DynamicSerializer
Dynamic sized serializer, using varint.
Constructor Summary | |
---|---|
protected |
IntegerDBID.DynamicSerializer()
Constructor. |
Method Summary | |
---|---|
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) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected IntegerDBID.DynamicSerializer()
Method Detail |
---|
public DBID fromByteBuffer(ByteBuffer buffer) throws UnsupportedOperationException
ByteBufferSerializer
fromByteBuffer
in interface ByteBufferSerializer<DBID>
buffer
- Data array to process
UnsupportedOperationException
public void toByteBuffer(ByteBuffer buffer, DBID object) throws UnsupportedOperationException
ByteBufferSerializer
toByteBuffer
in interface ByteBufferSerializer<DBID>
buffer
- Buffer to serialize toobject
- Object to serialize
UnsupportedOperationException
public int getByteSize(DBID object) throws UnsupportedOperationException
ByteBufferSerializer
getByteSize
in interface ByteBufferSerializer<DBID>
object
- Object to serialize
UnsupportedOperationException
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |