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