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

Julia Bakulina updated IGNITE-21406:
------------------------------------
    Ignite Flags:   (was: Docs Required,Release Notes Required)

> 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
>            Priority: Minor
>              Labels: ise
>
> 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
> {code:java}
> // 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);{code}
> 2) Add examples for Java and .NET to Configuring Binary Objects.
> The example in XML is below: 
> {code:java}
> <bean id="ignite.cfg" 
> class="org.apache.ignite.configuration.IgniteConfiguration">
> <property name="binaryConfiguration">
> <bean class="org.apache.ignite.configuration.BinaryConfiguration">
> <property name="nameMapper" ref="globalNameMapper"/>
> <property name="idMapper" ref="globalIdMapper"/>
> <property name="typeConfigurations">
> <list>
> <bean class="org.apache.ignite.binary.BinaryTypeConfiguration">
> <property name="typeName" value="org.apache.ignite.examples.*"/>
> <property name="serializer" ref="exampleSerializer"/>
> </bean>
> </list>
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to