| | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ConditionResult; |
| | | import org.forgerock.opendj.ldap.spi.IndexingOptions; |
| | | import org.opends.server.backends.pluggable.spi.ReadableStorage; |
| | | import org.opends.server.backends.pluggable.spi.ReadableTransaction; |
| | | import org.opends.server.backends.pluggable.spi.StorageRuntimeException; |
| | | import org.opends.server.backends.pluggable.spi.TreeName; |
| | | import org.opends.server.backends.pluggable.spi.WriteableStorage; |
| | | import org.opends.server.backends.pluggable.spi.WriteableTransaction; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.Modification; |
| | | |
| | |
| | | final class NullIndex extends Index |
| | | { |
| | | |
| | | NullIndex(TreeName name, Indexer indexer, State state, WriteableStorage txn, |
| | | NullIndex(TreeName name, Indexer indexer, State state, WriteableTransaction txn, |
| | | EntryContainer entryContainer) throws StorageRuntimeException |
| | | { |
| | | super(name, indexer, state, 0, 0, false, txn, entryContainer); |
| | |
| | | } |
| | | |
| | | @Override |
| | | void updateKey(WriteableStorage txn, ByteString key, EntryIDSet deletedIDs, EntryIDSet addedIDs) |
| | | void updateKey(WriteableTransaction txn, ByteString key, EntryIDSet deletedIDs, EntryIDSet addedIDs) |
| | | throws StorageRuntimeException |
| | | { |
| | | // Do nothing. |
| | |
| | | } |
| | | |
| | | @Override |
| | | ConditionResult containsID(ReadableStorage txn, ByteString key, EntryID entryID) |
| | | ConditionResult containsID(ReadableTransaction txn, ByteString key, EntryID entryID) |
| | | throws StorageRuntimeException |
| | | { |
| | | return ConditionResult.UNDEFINED; |
| | | } |
| | | |
| | | @Override |
| | | EntryIDSet read(ReadableStorage txn, ByteSequence key) |
| | | EntryIDSet read(ReadableTransaction txn, ByteSequence key) |
| | | { |
| | | return newUndefinedSet(); |
| | | } |
| | | |
| | | @Override |
| | | EntryIDSet readRange(ReadableStorage txn, ByteSequence lower, ByteSequence upper, boolean lowerIncluded, |
| | | EntryIDSet readRange(ReadableTransaction txn, ByteSequence lower, ByteSequence upper, boolean lowerIncluded, |
| | | boolean upperIncluded) |
| | | { |
| | | return newUndefinedSet(); |
| | |
| | | } |
| | | |
| | | @Override |
| | | void setTrusted(WriteableStorage txn, boolean trusted) throws StorageRuntimeException |
| | | void setTrusted(WriteableTransaction txn, boolean trusted) throws StorageRuntimeException |
| | | { |
| | | // Do nothing. |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | void open(WriteableStorage txn) throws StorageRuntimeException |
| | | void open(WriteableTransaction txn) throws StorageRuntimeException |
| | | { |
| | | // Do nothing. |
| | | } |
| | | |
| | | @Override |
| | | long getRecordCount(ReadableStorage txn) throws StorageRuntimeException |
| | | long getRecordCount(ReadableTransaction txn) throws StorageRuntimeException |
| | | { |
| | | return 0; |
| | | } |
| | | |
| | | @Override |
| | | void delete(WriteableStorage txn) throws StorageRuntimeException |
| | | void delete(WriteableTransaction txn) throws StorageRuntimeException |
| | | { |
| | | // Do nothing. |
| | | } |