public class VLVIndex extends DatabaseContainer implements ConfigurationChangeListener<LocalDBVLVIndexCfg>
Modifier and Type | Field and Description |
---|---|
VLVKeyComparator |
comparator
The comparator for vlvIndex keys.
|
SortOrder |
sortOrder
The SortOrder in use by this VLV index to sort the entries.
|
dbConfig, entryContainer, name
Modifier and Type | Method and Description |
---|---|
boolean |
addEntry(com.sleepycat.je.Transaction txn,
EntryID entryID,
Entry entry)
Update the vlvIndex for a new entry.
|
ConfigChangeResult |
applyConfigurationChange(LocalDBVLVIndexCfg cfg)
Applies the configuration changes to this change listener.
|
void |
close()
Close the VLV index.
|
int |
getSortedSetCapacity()
Get the sorted set capacity configured for this VLV index.
|
boolean |
isConfigurationChangeAcceptable(LocalDBVLVIndexCfg cfg,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed change to the configuration is
acceptable to this change listener.
|
boolean |
isTrusted()
Return true iff this index is trusted.
|
void |
open()
Opens a JE database in this database container.
|
void |
setTrusted(com.sleepycat.je.Transaction txn,
boolean trusted)
Set the vlvIndex trust state.
|
getName, getRecordCount, openCursor, openCursor, preload, toString
public VLVKeyComparator comparator
public void open() throws com.sleepycat.je.DatabaseException
open
in class DatabaseContainer
com.sleepycat.je.DatabaseException
- if a JE database error occurs while
opening the index.public void close() throws com.sleepycat.je.DatabaseException
close
in interface Closeable
close
in interface AutoCloseable
close
in class DatabaseContainer
com.sleepycat.je.DatabaseException
- if a JE database error occurs while
closing the index.public boolean addEntry(com.sleepycat.je.Transaction txn, EntryID entryID, Entry entry) throws com.sleepycat.je.DatabaseException, DirectoryException, JebException
txn
- A database transaction, or null if none is required.entryID
- The entry ID.entry
- The entry to be indexed.com.sleepycat.je.DatabaseException
- If an error occurs in the JE database.DirectoryException
- If a Directory Server
error occurs.JebException
- If an error occurs in the JE backend.public void setTrusted(com.sleepycat.je.Transaction txn, boolean trusted) throws com.sleepycat.je.DatabaseException
txn
- A database transaction, or null if none is required.trusted
- True if this vlvIndex should be trusted or false
otherwise.com.sleepycat.je.DatabaseException
- If an error occurs in the JE database.public boolean isTrusted()
public int getSortedSetCapacity()
public boolean isConfigurationChangeAcceptable(LocalDBVLVIndexCfg cfg, List<LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<LocalDBVLVIndexCfg>
cfg
- The new configuration containing the changes.unacceptableReasons
- A list that can be used to hold messages about why the
provided configuration is not acceptable.true
if the proposed change is
acceptable, or false
if it is not.public ConfigChangeResult applyConfigurationChange(LocalDBVLVIndexCfg cfg)
applyConfigurationChange
in interface ConfigurationChangeListener<LocalDBVLVIndexCfg>
cfg
- The new configuration containing the changes.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.