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