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)