return getRange(term, ArrayBytes.EMPTY_BYTES, ArrayBytes.EMPTY_BYTES, false, false, revNum);
}
@Override
public long commitNewRev(Collection<EditRec> edits) {
TLongLongHashMap idMap = new TLongLongHashMap();
for(EditRec edit : edits) {
long docId = edit.docId;
if (docId < 0) {
if (idMap.contains(docId)) {
edit.docId = idMap.get(docId);
} else {
long newDocId = nextDocId++;
idMap.put(docId, newDocId);
edit.docId = newDocId;
}
}
}
TokenTable newTokenTable = applyEditsToTokenTable(edits, getRootTokenTable(topRevNum));