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