public static class DoubleVector.SmallSerializer extends Object implements ByteBufferSerializer<DoubleVector>
Constructor and Description |
---|
DoubleVector.SmallSerializer() |
Modifier and Type | Method and Description |
---|---|
DoubleVector |
fromByteBuffer(ByteBuffer buffer)
Deserialize an object from a byte buffer (e.g. disk)
|
int |
getByteSize(DoubleVector vec)
Get the size of the object in bytes.
|
void |
toByteBuffer(ByteBuffer buffer,
DoubleVector vec)
Serialize the object to a byte array (e.g. disk)
|
public DoubleVector fromByteBuffer(ByteBuffer buffer) throws IOException
ByteBufferSerializer
fromByteBuffer
in interface ByteBufferSerializer<DoubleVector>
buffer
- Data array to processIOException
- on IO errorspublic void toByteBuffer(ByteBuffer buffer, DoubleVector vec) throws IOException
ByteBufferSerializer
toByteBuffer
in interface ByteBufferSerializer<DoubleVector>
buffer
- Buffer to serialize tovec
- Object to serializeIOException
- on IO errorspublic int getByteSize(DoubleVector vec)
ByteBufferSerializer
getByteSize
in interface ByteBufferSerializer<DoubleVector>
vec
- Object to serializeCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.