use of org.apache.geode.cache.query.internal.index.MemoryIndexStore.MemoryIndexStoreEntry in project geode by apache.
the class IndexMaintenanceJUnitTest method validateIndexForEntries.
private void validateIndexForEntries(CompactRangeIndex ri) {
assertEquals(6, ri.getIndexStorage().size());
Iterator itr = ri.getIndexStorage().iterator(null);
while (itr.hasNext()) {
Object obj = itr.next();
assertFalse(obj instanceof Collection);
MemoryIndexStoreEntry re = (MemoryIndexStoreEntry) obj;
Portfolio pf = (Portfolio) re.getRegionEntry().getValueInVM((LocalRegion) ri.getRegion());
assertTrue(idSet.contains(String.valueOf(pf.getID())));
}
}
Aggregations