ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: configuration for PortableMarshaller
Date Fri, 03 Jul 2015 09:49:54 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-sprint-7-portable-bench ea90d8633 -> 543fcceff


configuration for PortableMarshaller


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/543fccef
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/543fccef
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/543fccef

Branch: refs/heads/ignite-sprint-7-portable-bench
Commit: 543fcceffca0357a13ada50e136a50b4f59d0e08
Parents: ea90d86
Author: Denis Magda <dmagda@gridgain.com>
Authored: Fri Jul 3 12:49:35 2015 +0300
Committer: Denis Magda <dmagda@gridgain.com>
Committed: Fri Jul 3 12:49:35 2015 +0300

----------------------------------------------------------------------
 modules/yardstick/config/ignite-base-config.xml | 89 +++++++++++++++++---
 1 file changed, 76 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/543fccef/modules/yardstick/config/ignite-base-config.xml
----------------------------------------------------------------------
diff --git a/modules/yardstick/config/ignite-base-config.xml b/modules/yardstick/config/ignite-base-config.xml
index 9d28774..542214f 100644
--- a/modules/yardstick/config/ignite-base-config.xml
+++ b/modules/yardstick/config/ignite-base-config.xml
@@ -112,13 +112,39 @@
 
                     <property name="swapEnabled" value="false"/>
 
-                    <property name="indexedTypes">
+                    <property name="typeMetadata">
                         <list>
-                            <value>java.lang.Integer</value>
-                            <value>org.apache.ignite.yardstick.cache.model.Organization</value>
-
-                            <value>java.lang.Integer</value>
-                            <value>org.apache.ignite.yardstick.cache.model.Person</value>
+                            <bean class="org.apache.ignite.cache.CacheTypeMetadata">
+                                <property name="keyType" value="java.lang.Integer"/>
+                                <property name="valueType" value="org.apache.ignite.yardstick.cache.model.Organization"/>
+
+                                <property name="ascendingFields">
+                                    <map>
+                                        <entry key="id" value="java.lang.Integer"/>
+                                        <entry key="name" value="java.lang.String"/>
+                                    </map>
+                                </property>
+                            </bean>
+
+                            <bean class="org.apache.ignite.cache.CacheTypeMetadata">
+                                <property name="keyType" value="java.lang.Integer"/>
+                                <property name="valueType" value="org.apache.ignite.yardstick.cache.model.Person"/>
+
+                                <property name="ascendingFields">
+                                    <map>
+                                        <entry key="id" value="java.lang.Integer"/>
+                                        <entry key="orgId" value="java.lang.Integer"/>
+                                        <entry key="salary" value="java.lang.Double"/>
+                                    </map>
+                                </property>
+
+                                <property name="queryFields">
+                                    <map>
+                                        <entry key="firstName" value="java.lang.String"/>
+                                        <entry key="lastName" value="java.lang.String"/>
+                                    </map>
+                                </property>
+                            </bean>
                         </list>
                     </property>
                 </bean>
@@ -134,13 +160,39 @@
 
                     <property name="memoryMode" value="OFFHEAP_TIERED"/>
 
-                    <property name="indexedTypes">
+                    <property name="typeMetadata">
                         <list>
-                            <value>java.lang.Integer</value>
-                            <value>org.apache.ignite.yardstick.cache.model.Organization</value>
-
-                            <value>java.lang.Integer</value>
-                            <value>org.apache.ignite.yardstick.cache.model.Person</value>
+                            <bean class="org.apache.ignite.cache.CacheTypeMetadata">
+                                <property name="keyType" value="java.lang.Integer"/>
+                                <property name="valueType" value="org.apache.ignite.yardstick.cache.model.Organization"/>
+
+                                <property name="ascendingFields">
+                                    <map>
+                                        <entry key="id" value="java.lang.Integer"/>
+                                        <entry key="name" value="java.lang.String"/>
+                                    </map>
+                                </property>
+                            </bean>
+
+                            <bean class="org.apache.ignite.cache.CacheTypeMetadata">
+                                <property name="keyType" value="java.lang.Integer"/>
+                                <property name="valueType" value="org.apache.ignite.yardstick.cache.model.Person"/>
+
+                                <property name="ascendingFields">
+                                    <map>
+                                        <entry key="id" value="java.lang.Integer"/>
+                                        <entry key="orgId" value="java.lang.Integer"/>
+                                        <entry key="salary" value="java.lang.Double"/>
+                                    </map>
+                                </property>
+
+                                <property name="queryFields">
+                                    <map>
+                                        <entry key="firstName" value="java.lang.String"/>
+                                        <entry key="lastName" value="java.lang.String"/>
+                                    </map>
+                                </property>
+                            </bean>
                         </list>
                     </property>
                 </bean>
@@ -163,10 +215,21 @@
             <list/>
         </property>
 
+        <property name="marshaller">
+            <bean class="org.gridgain.grid.marshaller.portable.PortableMarshaller">
+                <property name="classNames">
+                    <list>
+                        <value>org.apache.ignite.yardstick.cache.model.*</value>
+                    </list>
+                </property>
+                <property name="metaDataEnabled" value="false" />
+            </bean>
+        </property>
+
         <property name="loadBalancingSpi">
             <bean class="org.apache.ignite.spi.loadbalancing.roundrobin.RoundRobinLoadBalancingSpi">
                 <property name="perTask" value="false"/>
             </bean>
         </property>
     </bean>
-</beans>
+</beans>
\ No newline at end of file


Mime
View raw message