//here convert is not performed
protected void rangeLookupKeys(Key minKey, Key maxKey, boolean includeMinKey, boolean includeMaxKey, PageNumber root, ArrayList values, KernelContext kContext) throws ChaiDBException {
if (!checkKeyPair(minKey, maxKey)) return;
BTreePage page;
if (minKey == null) {
page = findLeftMostLeaf(root);
} else {
page = new BTreePage(id, root, btreeSpec, getBuffer());
if (page.getPage() != null) {
page = page.getLeaf(minKey, kContext, BTreePage.SEARCH);
getBuffer().releasePage(id, root, false);
}
}
if (page.getPage() != null) {
page.searchKeys(minKey, maxKey, includeMinKey, includeMaxKey, kContext, values);
// unfix root and leaf page.
getBuffer().releasePage(id, page.pageNumber, false);
}
}