[
https://issues.apache.org/jira/browse/IGNITE-15978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vladimir Ermakov updated IGNITE-15978:
--------------------------------------
Description:
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.
{{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}}
But the same layout of the binary object cannot be built by
BinaryObjectBuilder.e.g.:
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,
.
was:
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.
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
But the same layout of the binary object cannot be built by
BinaryObjectBuilder.e.g.:
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,
.
> 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
>
> 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.
>
> {{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}}
>
> But the same layout of the binary object cannot be built by
> BinaryObjectBuilder.e.g.:
> 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,
> .
--
This message was sent by Atlassian Jira
(v8.20.1#820001)