ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Davydov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-5602) By bytes access to binary format
Date Tue, 11 Jul 2017 13:59:00 GMT

     [ https://issues.apache.org/jira/browse/IGNITE-5602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrey Davydov updated IGNITE-5602:
-----------------------------------
    Attachment: 0001-Implement-streaming-API-to-BinaryObject.-See-IGNITE-.patch

I have implement variation of byte access api. It use wrapper over BinaryReaderExImpl.

> By bytes access to binary format
> --------------------------------
>
>                 Key: IGNITE-5602
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5602
>             Project: Ignite
>          Issue Type: New Feature
>    Affects Versions: 2.0
>            Reporter: Vladislav Pyatkov
>         Attachments: 0001-Implement-streaming-API-to-BinaryObject.-See-IGNITE-.patch
>
>
> Need to avoid memory additional allocation when pass bytes to stream.
> Now we are doing only
> {code}
> BinaryObject get = (BinaryObject) cache.get(key);
> byte[] dataFromCache = get.<byte[]>field("data");
> System.out.write(dataFromCache, 0, dataFromCache.length);
> {code}
> But we want to write bytes to stream directly, without allocation additional {{byte[]}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message