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