Skip to content

[TRACKING ISSUE] GenericRecord and Serialization API Improvements #342

@ghost

Description

The tracking issue for the Java side PR.

GenericRecord and Serialization API Improvements

See hazelcast/hazelcast#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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions