[
https://issues.apache.org/jira/browse/IGNITE-15978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vyacheslav Koptilin updated IGNITE-15978:
-----------------------------------------
Ignite Flags: (was: Docs Required,Release Notes Required)
> Support binary HANLDEs by BinaryObjectBuilder
> ---------------------------------------------
>
> Key: IGNITE-15978
> URL: https://issues.apache.org/jira/browse/IGNITE-15978
> Project: Ignite
> Issue Type: Improvement
> Components: sql
> Reporter: Vladimir Ermakov
> Assignee: Vladimir Ermakov
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> We have to support binary HANLDEs by BinaryObjectBuilder.
> Now, the binary object is created by marshaling the java object may contain
> filed that is represented by the HANDLE (reference) to the other member of
> the upper object.e.g.
>
> {code:java}
> class MyClass {
> List<Value> lst0;
> List<Value> lst1;
> }
> MyClass var = new MyClass();
> var.lst0 = ...;
> var.lst1 = lst0; // Will be serialized as the HANDLE with offset that refers
> to the lst0 {code}
> But the same layout of the binary object cannot be built by
> BinaryObjectBuilder.e.g.:
> {code:java}
> BinaryObjectBuilder bob = builder("MyClass");
> List<Value> lst = ...;
> bob.setField("lst0", lst);
> bob.setField("lst1", lst);
> BinaryObject bo = bob.build(); // Binary object will not contain HANDLE. The
> collections will be marshaled independently, {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)