@Experimental public interface ValueSerializer
DriverFactory.setValueSerializer(ValueSerializer)
On the server side, there must be a registered ValueSerializer with the same id.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deserialize(com.google.protobuf.ByteString bytes)
Deserialize an object from a byte array.
|
java.lang.String |
getID()
Return the id of this value format.
|
com.google.protobuf.ByteString |
serialize(java.lang.Object object)
Serialize an object into a byte array.
|
boolean |
supportsPrimitives()
True if this serializer wants to serialize all values, including primitives like
numbers and strings that can be sent as one of the options in EncodedValue.
|
com.google.protobuf.ByteString serialize(java.lang.Object object) throws java.io.IOException
java.io.IOException
java.lang.Object deserialize(com.google.protobuf.ByteString bytes) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
java.lang.String getID()
boolean supportsPrimitives()