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