Package elki.data.type
Class TypeInformationSerializer.VectorFieldTypeSerializer
- java.lang.Object
-
- elki.data.type.TypeInformationSerializer.VectorFieldTypeSerializer
-
- All Implemented Interfaces:
ByteBufferSerializer<VectorFieldTypeInformation<?>>
- Enclosing class:
- TypeInformationSerializer
static class TypeInformationSerializer.VectorFieldTypeSerializer extends java.lang.Object implements ByteBufferSerializer<VectorFieldTypeInformation<?>>
Serialization class for field vector types.FIXME: "relation label" is actually not properly supported.
- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description VectorFieldTypeSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VectorFieldTypeInformation<?>
fromByteBuffer(java.nio.ByteBuffer buffer)
Deserialize an object from a byte buffer (e.g., disk)int
getByteSize(VectorFieldTypeInformation<?> object)
Get the size of the object in bytes.void
toByteBuffer(java.nio.ByteBuffer buffer, VectorFieldTypeInformation<?> object)
Serialize the object to a byte array (e.g., disk)
-
-
-
Method Detail
-
fromByteBuffer
public VectorFieldTypeInformation<?> fromByteBuffer(java.nio.ByteBuffer buffer) throws java.io.IOException
Description copied from interface:ByteBufferSerializer
Deserialize an object from a byte buffer (e.g., disk)- Specified by:
fromByteBuffer
in interfaceByteBufferSerializer<VectorFieldTypeInformation<?>>
- Parameters:
buffer
- Data array to process- Returns:
- Deserialized object
- Throws:
java.io.IOException
- on IO errors
-
toByteBuffer
public void toByteBuffer(java.nio.ByteBuffer buffer, VectorFieldTypeInformation<?> object) throws java.io.IOException
Description copied from interface:ByteBufferSerializer
Serialize the object to a byte array (e.g., disk)- Specified by:
toByteBuffer
in interfaceByteBufferSerializer<VectorFieldTypeInformation<?>>
- Parameters:
buffer
- Buffer to serialize toobject
- Object to serialize- Throws:
java.io.IOException
- on IO errors
-
getByteSize
public int getByteSize(VectorFieldTypeInformation<?> object) throws java.io.IOException
Description copied from interface:ByteBufferSerializer
Get the size of the object in bytes.- Specified by:
getByteSize
in interfaceByteBufferSerializer<VectorFieldTypeInformation<?>>
- Parameters:
object
- Object to serialize- Returns:
- maximum size in serialized form
- Throws:
java.io.IOException
- on IO errors
-
-