Reinstated FUNCTIONAL as a valid index type XML attribute and correction for compiler issue in GemfireOnRegionFunctionTemplate

This commit is contained in:
David Turanski
2013-02-05 10:37:33 -05:00
parent 11dce8858b
commit 8861e89a97
3 changed files with 3 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ public class GemfireOnRegionFunctionTemplate extends AbstractFunctionTemplate i
@Override
public <T> T executeAndextract(String functionId, Set<?> keys, Object... args) {
return executeAndExtract(new RegionFunctionExecution(region)
return this.<T> executeAndExtract(new RegionFunctionExecution(region)
.setKeys(keys)
.setFunctionId(functionId)
.setTimeout(timeout)

View File

@@ -2149,6 +2149,7 @@ The name of the index bean definition. If property 'name' is not set, it will be
<xsd:restriction base="xsd:string">
<xsd:enumeration value="HASH" />
<xsd:enumeration value="PRIMARY_KEY"/>
<xsd:enumeration value="FUNCTIONAL"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>

View File

@@ -15,7 +15,7 @@
<!-- as there can be only one cache per VM -->
<gfe:index id="simple" expression="status" from="/test-index"/>
<gfe:index id="simple" expression="status" from="/test-index" type="FUNCTIONAL"/>
<gfe:index id="complex" name="complex-index" expression="tsi.name" from="/test-index tsi" type="HASH" imports="import java.util"/>