| | |
| | | EntryID entryID = dn2id.get(txn, entryDN); |
| | | if (entryID != null) |
| | | { |
| | | ByteString key = entryID.toByteString(); |
| | | EntryIDSet entryIDSet; |
| | | if (subtree) |
| | | { |
| | | entryIDSet = id2subtree.readKey(key, txn); |
| | | } |
| | | else |
| | | { |
| | | entryIDSet = id2children.readKey(key, txn); |
| | | } |
| | | final Index index = subtree ? id2subtree : id2children; |
| | | final EntryIDSet entryIDSet = index.read(txn, entryID.toByteString()); |
| | | long count = entryIDSet.size(); |
| | | if (count != Long.MAX_VALUE) |
| | | { |
| | |
| | | EntryIDSet scopeList; |
| | | if (searchScope == SearchScope.SINGLE_LEVEL) |
| | | { |
| | | scopeList = id2children.readKey(baseIDData, txn); |
| | | scopeList = id2children.read(txn, baseIDData); |
| | | } |
| | | else |
| | | { |
| | | scopeList = id2subtree.readKey(baseIDData, txn); |
| | | scopeList = id2subtree.read(txn, baseIDData); |
| | | if (searchScope == SearchScope.WHOLE_SUBTREE) |
| | | { |
| | | // The id2subtree list does not include the base entry ID. |
| | |
| | | final EntryID entryID = dn2id.get(txn, baseDN); |
| | | if (entryID != null) |
| | | { |
| | | final EntryIDSet entryIDSet = id2subtree.readKey(entryID.toByteString(), txn); |
| | | final EntryIDSet entryIDSet = id2subtree.read(txn, entryID.toByteString()); |
| | | long count = entryIDSet.size(); |
| | | if(count != Long.MAX_VALUE) |
| | | { |