if ((beginKey != null || endKey != null) && !keyRangesAllowed) {
throw new UnsupportedOperationException
("Key ranges allowed only for BTREE databases");
}
KeyRange useRange = useSubRange();
useRange = subRange
(useRange, beginKey, beginInclusive, endKey, endInclusive);
if (dupsView) {
dupsRange = useRange;
} else {