@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 |
---|---|
Object |
deserialize(com.google.protobuf.ByteString bytes)
Deserialize an object from a byte array.
|
String |
getID()
Return the id of this value format.
|
com.google.protobuf.ByteString |
serialize(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(Object object) throws IOException
IOException
Object deserialize(com.google.protobuf.ByteString bytes) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
String getID()
boolean supportsPrimitives()