Add UuidSerializer and improve serialization service and its test suite #218
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Depends on #217
This PR implements the UuidSerializer as a default serializer.
With this change, objects of
uuid.UUIDtype will be serialized using this serializer andjava.util.UUIDobjects will be converted to that type when received from the server.Apart from that, this PR includes some other changes.
bytearraytype will now be serialized withByteArraySerializerto_datafunction.IntegerSerializerandLongSerializer. Formerly, we were throwing an exception for-1 << 31and-1 << 63values. However, they are valid asIntegerorLong. Now, we are relying on thestructpackage to throw exceptions on out-of-range values.MAX_SHORT,MAX_INT,MAX_LONG) Unused constant definitions are removed. (MAX_FLOAT32,MIN_FLOAT32)JavaClassSerializer.write_data,LinkedListSerializer.write_dataetc.) are commented out.BigDecimalSerializeris removed.DatetimeSerializeris fixed and made compatible withjava.util.Date.set/getfrom the client,setfrom the client,getfrom the remote controller,seton the server, andgetfrom the client.