use of org.apache.geode.cache.query.internal.index.RangeIndex in project geode by apache.
the class IndexCreationJUnitTest method testIndexCreationWithFunctions.
@Test
public void testIndexCreationWithFunctions() throws Exception {
// Task ID : ICM14
QueryService qs;
qs = CacheUtils.getQueryService();
Index i1 = qs.createIndex("SetSecIDIndex1", IndexType.FUNCTIONAL, "b.secId", "/portfolios.asSet pf, pf.positions.values b");
Index i2 = qs.createIndex("ListSecIDIndex2", IndexType.FUNCTIONAL, "b.secId", "/portfolios.asList pf, pf.positions.values b");
Index i3 = qs.createIndex("ArraySecIDIndex3", IndexType.FUNCTIONAL, "b.secId", "/portfolios.toArray pf, pf.positions.values b");
CacheUtils.log(((RangeIndex) i1).dump());
CacheUtils.log(((RangeIndex) i2).dump());
CacheUtils.log(((RangeIndex) i3).dump());
}
Aggregations