
static class TypeInformationSerializer.SimpleTypeSerializer extends Object implements ByteBufferSerializer<SimpleTypeInformation<?>>
| Constructor and Description |
|---|
TypeInformationSerializer.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)
|
TypeInformationSerializer.SimpleTypeSerializer()
public SimpleTypeInformation<?> fromByteBuffer(ByteBuffer buffer) throws IOException, UnsupportedOperationException
ByteBufferSerializerfromByteBuffer 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
ByteBufferSerializertoByteBuffer 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
ByteBufferSerializergetByteSize in interface ByteBufferSerializer<SimpleTypeInformation<?>>object - Object to serializeIOException - on IO errorsUnsupportedOperationException - When functionality not implemented or
available