
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
ByteBufferSerializerfromByteBuffer 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
ByteBufferSerializertoByteBuffer 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
ByteBufferSerializergetByteSize in interface ByteBufferSerializer<VectorTypeInformation<?>>object - Object to serializeIOException - on IO errorsUnsupportedOperationException - When functionality not implemented or
available