You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ignite TC Bot (Jira)" <ji...@apache.org> on 2021/11/25 08:12:00 UTC

[jira] [Commented] (IGNITE-15978) Support binary HANLDEs by BinaryObjectBuilder

    [ https://issues.apache.org/jira/browse/IGNITE-15978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17449006#comment-17449006 ] 

Ignite TC Bot commented on IGNITE-15978:
----------------------------------------

{panel:title=Branch: [pull/9590/head] Base: [master] : No blockers found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/9590/head] Base: [master] : New Tests (6)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Binary Objects{color} [[tests 6|https://ci.ignite.apache.org/viewLog.html?buildId=6287179]]
* {color:#013220}IgniteBinaryObjectsTestSuite: BinaryObjectBuilderAdditionalSelfTest.testMapsHandlePossible - PASSED{color}
* {color:#013220}IgniteBinaryObjectsTestSuite: BinaryObjectBuilderAdditionalSelfTest.testCollectionsHandlePossible - PASSED{color}
* {color:#013220}IgniteBinaryObjectsTestSuite: BinaryObjectBuilderAdditionalSelfTest.testObjectHandleIsPossible - PASSED{color}
* {color:#013220}IgniteBinaryObjectsTestSuite: BinaryObjectBuilderAdditionalNonCompactSelfTest.testMapsHandlePossible - PASSED{color}
* {color:#013220}IgniteBinaryObjectsTestSuite: BinaryObjectBuilderAdditionalNonCompactSelfTest.testCollectionsHandlePossible - PASSED{color}
* {color:#013220}IgniteBinaryObjectsTestSuite: BinaryObjectBuilderAdditionalNonCompactSelfTest.testObjectHandleIsPossible - PASSED{color}

{panel}
[TeamCity *--&gt; Run :: All* Results|https://ci.ignite.apache.org/viewLog.html?buildId=6287052&amp;buildTypeId=IgniteTests24Java8_RunAll]

> 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)