| | |
| | | |
| | | import org.forgerock.opendj.ldap.ByteSequence; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.util.Reject; |
| | | |
| | | /** |
| | | * This class manages the set of ID that are to be eventually added to an index |
| | |
| | | */ |
| | | void addEntryID(long entryID) |
| | | { |
| | | if ((entryID < 0)|| (isDefined() && size() + 1 > indexEntryLimitSize)) { |
| | | Reject.ifTrue(entryID < 0); |
| | | if (isDefined() && size() + 1 > indexEntryLimitSize) { |
| | | entryIDSet = maintainCount ? newUndefinedSetWithSize(key, size() + 1) : newUndefinedSetWithKey(key); |
| | | } else if (isDefined() || maintainCount) { |
| | | entryIDSet.add(new EntryID(entryID)); |