Hi,

>How do I do streamer.addData to add the binary objects?
If you want to work without classes, you can use binary object builder,
just take it for these types:

ignite.binary().builder(CustomKey);

ignite.binary().builder(Customer);

And set fields in it:

builder.setField("Client_ID", value);

These objects can be used for streaming.

However, if you want to use java objects in future, you will need to
change keyType and keyType to the full name with a package.


Evgenii


пн, 20 апр. 2020 г. в 08:53, narges saleh <[email protected]>:

> Hi All,
> If I have a query entity defined with composite CustomKey, how do I insert
> to the cache,here, Customer, via the DataStreamer, using binary object
> builder? Do I need to define an object for the composite CustomKey? I am
> trying to define all the tables/caches via the configuration file. How do I
> do streamer.addData to add the binary objects?
> For example the QE is defined as
>      <bean class="org.apache.ignite.cache.QueryEntity">
>                                 <property name="keyType"
> value="CustomKey"/>
>                                 <property name="valueType"
> value="Customer"/>
>                                 <property name="tableName"
> value="Customer"/>
>                                 ....
>
>                 <property name="keyFields">
>                                   <set>
>                                     <value>Client_ID</value>
>                                     <value>Customer_ID</value>
>                                     </set>
>                  </property>
> thanks.
>
>

Reply via email to