| | |
| | | import static org.opends.server.util.DynamicConstants.*; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | import static org.opends.server.backends.pluggable.EntryIDSet.*; |
| | | |
| | | import java.io.BufferedInputStream; |
| | | import java.io.BufferedOutputStream; |
| | |
| | | { |
| | | if (indexMgr.isDN2ID()) |
| | | { |
| | | return new ImportIDSet(key, 1, 1, false); |
| | | return new ImportIDSet(key, newDefinedSet(), 1, false); |
| | | } |
| | | |
| | | final Index index = idContainerMap.get(indexID); |
| | | return new ImportIDSet(key, 1, index.getIndexEntryLimit(), index.getMaintainCount()); |
| | | return new ImportIDSet(key, newDefinedSet(), index.getIndexEntryLimit(), index.getMaintainCount()); |
| | | } |
| | | |
| | | private void addToDB(int indexID, ImportIDSet insertSet, ImportIDSet deleteSet) throws DirectoryException |
| | |
| | | ImportIDSet idSet = id2childTree.get(parentIDBytes); |
| | | if (idSet == null) |
| | | { |
| | | idSet = new ImportIDSet(parentIDBytes, 1, childLimit, childDoCount); |
| | | idSet = new ImportIDSet(parentIDBytes, newDefinedSet(), childLimit, childDoCount); |
| | | id2childTree.put(parentIDBytes, idSet); |
| | | } |
| | | return idSet; |
| | |
| | | ImportIDSet idSet = id2subtreeTree.get(entryIDBytes); |
| | | if (idSet == null) |
| | | { |
| | | idSet = new ImportIDSet(entryIDBytes, 1, subTreeLimit, subTreeDoCount); |
| | | idSet = new ImportIDSet(entryIDBytes, newDefinedSet(), subTreeLimit, subTreeDoCount); |
| | | id2subtreeTree.put(entryIDBytes, idSet); |
| | | } |
| | | return idSet; |