SGF-370 - Add multi-Index definition and creation support.
Added integration tests to test the definition and subsequent creation of multiple Indexes inside a GemFire Server within a Spring context.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:gfe="http://www.springframework.org/schema/gemfire"
|
||||
xmlns:util="http://www.springframework.org/schema/util"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire.xsd
|
||||
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
|
||||
">
|
||||
|
||||
<util:properties id="gemfireProperties">
|
||||
<prop key="name">CreateDefinedIndexesIntegrationTest</prop>
|
||||
<prop key="mcast-port">0</prop>
|
||||
<prop key="log-level">warning</prop>
|
||||
</util:properties>
|
||||
|
||||
<bean class="org.springframework.data.gemfire.config.CreateDefinedIndexesIntegrationTest$IndexBeanPostProcessor"/>
|
||||
|
||||
<gfe:cache properties-ref="gemfireProperties"/>
|
||||
|
||||
<gfe:partitioned-region id="People" persistent="false" key-constraint="java.lang.Long"
|
||||
value-constraint="org.springframework.data.gemfire.config.CreateDefinedIndexesIntegrationTest$Person"/>
|
||||
|
||||
<gfe:index id="IdIdx" define="true" expression="id" from="/People" type="KEY"/>
|
||||
|
||||
<gfe:index id="BirthDateIdx" define="true" expression="birthDate" from="/People" type="HASH"/>
|
||||
|
||||
<gfe:index id="FullNameIdx" define="true" expression="fullName" from="/People" type="FUNCTIONAL"/>
|
||||
|
||||
<gfe:index id="LastNameIdx" expression="lastName" from="/People" type="HASH"/>
|
||||
|
||||
</beans>
|
||||
Reference in New Issue
Block a user