@Override
public Scanner fetchRange(byte[] prefix,
byte[] term1, byte[] term2,
boolean isExclusive1, boolean isExclusive2,
long revNum, Scorer scorer) {
Score score = scorer == null ? null : scorer.newScore();
LookedUpTerm prefixResult = descendByTerm(prefix);
for(int i=0; i < prefixResult.termPrefixLen; i++) {
score.add(prefix[i]);
}
final int page = prefixResult.page;
boolean isLeaf = (LEAF_MASK & page) == LEAF_MASK;
if (isLeaf) {
return new LeafScanner(page, revNum, score);