use of org.apache.geode.cache.query.internal.QRegion in project geode by apache.
the class DummyQRegion method getEntries.
@Override
public SelectResults getEntries() {
if (entries == null) {
entries = new ResultsSet();
entries.setElementType(TypeUtils.getRegionEntryType(getRegion()));
}
entries.clear();
// return collection of Region.Entry, not (dotless) RegionEntry
Region rgn = getRegion();
// unwrap until we get the LocalRegion
while (!(rgn instanceof LocalRegion)) {
rgn = ((QRegion) TypeUtils.checkCast(rgn, QRegion.class)).getRegion();
}
entries.add(((LocalRegion) rgn).new NonTXEntry(entry));
return entries;
}
Aggregations