Hi,


I want to know scenarios,



1)I want to use ignite affinity key logic to keep homogeneous data in one 
place, for this i created bean like



     public class RowID {

            private int id;

            @AffinityKeyMapped

            private int regid;

            ...



}



configured  in xml like,

.....

<property name="queryEntities">

<list>

<bean class="org.apache.ignite.cache.QueryEntity">

<property name="keyType" value="com.sixdee.ignite.RowID"></property>

<property name="valueType" value="persons"></property> <property name="fields"> 
<map> <entry key="subscriber" value="java.lang.String"></entry> <entry 
key="orgId" value="java.lang.String"></entry> <entry key="birthday" 
value="java.lang.String"></entry> <entry key="name" 
value="java.lang.String"></entry> <entry key="salary" 
value="java.lang.String"></entry> <entry key="gender" 
value="java.lang.String"></entry> <entry key="key" 
value="com.sixdee.ignite.RowID"></entry>

</map>

</property>

<property name="keyFields">

<set>

<value>key</value>

</set>

</property>

</bean>

</list>

</property>

......



And Schema was automatically created by Ignite,



Now, how i can query the cache with an affinity key in SQL to get the data 
directly from the node where it resides.



Note: Actually i want to use affinity key like row key in HBase.





2)Do we need to maintain key also as an entry in map tag?



3)How I can query(through Ignite web console) the cache with the fields in 
RowID(Above

example) in ignite.



Thanks,

Ajay.





---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Reply via email to