You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Julia Bakulina (Jira)" <ji...@apache.org> on 2024/01/31 11:12:00 UTC
[jira] [Created] (IGNITE-21406) Add examples to Binary Marshaller in Data Modeling docs
Julia Bakulina created IGNITE-21406:
---------------------------------------
Summary: Add examples to Binary Marshaller in Data Modeling docs
Key: IGNITE-21406
URL: https://issues.apache.org/jira/browse/IGNITE-21406
Project: Ignite
Issue Type: Improvement
Reporter: Julia Bakulina
Assignee: Julia Bakulina
1) Add example to platform types for thin clients. The analogue that is currently in the docs: https://ignite.apache.org/docs/latest/data-modeling/binary-marshaller
Java
{panel}
{panel}
|{{// Create a regular Person object and put it to the cache.}}
{{Person person = buildPerson(personId);}}
{{{}ignite.cache({}}}{{{}"myCache"{}}}{{{}).put(personId, person);{}}}
{{// Get an instance of binary-enabled cache.}}
{{{}IgniteCache<Integer, BinaryObject> binaryCache = ignite.cache({}}}{{{}"myCache"{}}}{{{}).withKeepBinary();{}}}
{{// Get the above person object in the BinaryObject format.}}
{{BinaryObject binaryPerson = binaryCache.get(personId);}}|
--
This message was sent by Atlassian Jira
(v8.20.10#820010)