static class TypeInformationSerializer.SimpleTypeSerializer extends Object implements ByteBufferSerializer<SimpleTypeInformation<?>>
Constructor and Description |
---|
SimpleTypeSerializer() |
Modifier and Type | Method and Description |
---|---|
SimpleTypeInformation<?> |
fromByteBuffer(ByteBuffer buffer)
Deserialize an object from a byte buffer (e.g. disk)
|
int |
getByteSize(SimpleTypeInformation<?> object)
Get the size of the object in bytes.
|
void |
toByteBuffer(ByteBuffer buffer,
SimpleTypeInformation<?> object)
Serialize the object to a byte array (e.g. disk)
|
public SimpleTypeInformation<?> fromByteBuffer(ByteBuffer buffer) throws IOException, UnsupportedOperationException
ByteBufferSerializer
fromByteBuffer
in interface ByteBufferSerializer<SimpleTypeInformation<?>>
buffer
- Data array to processIOException
- on IO errorsUnsupportedOperationException
- When functionality not implemented or
availablepublic void toByteBuffer(ByteBuffer buffer, SimpleTypeInformation<?> object) throws IOException, UnsupportedOperationException
ByteBufferSerializer
toByteBuffer
in interface ByteBufferSerializer<SimpleTypeInformation<?>>
buffer
- Buffer to serialize toobject
- Object to serializeIOException
- on IO errorsUnsupportedOperationException
- When functionality not implemented or
availablepublic int getByteSize(SimpleTypeInformation<?> object) throws IOException, UnsupportedOperationException
ByteBufferSerializer
getByteSize
in interface ByteBufferSerializer<SimpleTypeInformation<?>>
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.