hazelcast / hazelcast/hazelcast-cpp-client

[TRACKING ISSUE] GenericRecord and Serialization API Improvements

Open
#804 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
91
Forks
54
Avg merge
1d 12m
Merged PRs (30d)
5

Description

The tracking issue for the Java side PR.

**GenericRecord and Serialization API Improvements**

See https://github.com/hazelcast/hazelcast/pull/18100 for details.

---

GenericRecord#read methods renamed to get
GenericRecord.Builder#write methods are renamed to set
GenericRecord.Builder moved to its own class as GenericRecordBuilder

UTF renamed to String in following API's. Old API's are deprecated

ClassDefinitionBuilder.addUTFField()
ClassDefinitionBuilder.addUTFArrayField()
PortableWriter.writeUTF()
PortableWriter.writeUTFArray()
PortableReader.readUTF()
PortableReader.readUTFArray()
ObjectDataOutput.writeUTF()
ObjectDataOutput.writeUTFArray()
ObjectDataInput.readUTF()
ObjectDataInput.readUTFArray()

UTF renamed to String without deprecation on following API's

GenericRecord.readUTF()
GenericRecord.readUTFArray()

GenericRecordBuilder.writeUTF()
GenericRecordBuilder.writeUTFArray()

FieldType.UTF could not be changed because of backward compatibility.
FieldType.String could not be added because of same reason.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.