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

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

{panel:title=Branch: [pull/11470/head] Base: [master] : No blockers 
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/11470/head] Base: [master] : No new tests 
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1}{panel}
[TeamCity *--> Run :: All* 
Results|https://ci2.ignite.apache.org/viewLog.html?buildId=8022331&buildTypeId=IgniteTests24Java8_RunAll]

> 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
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> 1) Add example to binary objects processing for thin clients. The code 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