|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.persistent.ByteArrayUtil.LongSerializer
public static class ByteArrayUtil.LongSerializer

Serializer for long objects
| Constructor Summary | |
|---|---|
protected |
ByteArrayUtil.LongSerializer()
Constructor. |
| Method Summary | |
|---|---|
Long |
fromByteBuffer(ByteBuffer buffer)
Deserialize an object from a byte buffer (e.g. disk) |
int |
getByteSize(Long object)
Get the size of the object in bytes. |
int |
getFixedByteSize()
Get the fixed size needed by this serializer. |
void |
toByteBuffer(ByteBuffer buffer,
Long obj)
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 ByteArrayUtil.LongSerializer()
| Method Detail |
|---|
public Long fromByteBuffer(ByteBuffer buffer)
ByteBufferSerializer
fromByteBuffer in interface ByteBufferSerializer<Long>buffer - Data array to process
public void toByteBuffer(ByteBuffer buffer,
Long obj)
ByteBufferSerializer
toByteBuffer in interface ByteBufferSerializer<Long>buffer - Buffer to serialize toobj - Object to serializepublic int getByteSize(Long object)
ByteBufferSerializer
getByteSize in interface ByteBufferSerializer<Long>object - Object to serialize
public int getFixedByteSize()
FixedSizeByteBufferSerializer
getFixedByteSize in interface FixedSizeByteBufferSerializer<Long>
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||