static class TypeInformationSerializer.VectorTypeSerializer extends Object implements ByteBufferSerializer<VectorTypeInformation<?>>
Constructor and Description |
---|
TypeInformationSerializer.VectorTypeSerializer() |
Modifier and Type | Method and Description |
---|---|
VectorTypeInformation<?> |
fromByteBuffer(ByteBuffer buffer)
Deserialize an object from a byte buffer (e.g. disk)
|
int |
getByteSize(VectorTypeInformation<?> object)
Get the size of the object in bytes.
|
void |
toByteBuffer(ByteBuffer buffer,
VectorTypeInformation<?> object)
Serialize the object to a byte array (e.g. disk)
|
TypeInformationSerializer.VectorTypeSerializer()
public VectorTypeInformation<?> fromByteBuffer(ByteBuffer buffer) throws IOException, UnsupportedOperationException
ByteBufferSerializer
fromByteBuffer
in interface ByteBufferSerializer<VectorTypeInformation<?>>
buffer
- Data array to processIOException
- on IO errorsUnsupportedOperationException
- When functionality not implemented or
availablepublic void toByteBuffer(ByteBuffer buffer, VectorTypeInformation<?> object) throws IOException, UnsupportedOperationException
ByteBufferSerializer
toByteBuffer
in interface ByteBufferSerializer<VectorTypeInformation<?>>
buffer
- Buffer to serialize toobject
- Object to serializeIOException
- on IO errorsUnsupportedOperationException
- When functionality not implemented or
availablepublic int getByteSize(VectorTypeInformation<?> object) throws IOException, UnsupportedOperationException
ByteBufferSerializer
getByteSize
in interface ByteBufferSerializer<VectorTypeInformation<?>>
object
- Object to serializeIOException
- on IO errorsUnsupportedOperationException
- When functionality not implemented or
availableCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.