public class DbInternal extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DbInternal.Search
Search mode used with the internal search and searchBoth methods.
|
| Modifier and Type | Field and Description |
|---|---|
static OperationResult |
DEFAULT_RESULT |
| Constructor and Description |
|---|
DbInternal() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
advanceCursor(Cursor cursor,
DatabaseEntry key,
DatabaseEntry data)
Proxy to Cursor.advanceCursor()
|
static Transaction |
beginInternalTransaction(Environment env,
TransactionConfig config) |
static void |
checkImmutablePropsForEquality(EnvironmentMutableConfig config,
Properties handleConfigProps)
Proxy to EnvironmentMutableConfig.checkImmutablePropsForEquality()
|
static EnvironmentImpl |
checkOpen(Environment env)
Proxy to Environment.checkOpen
|
static void |
clearEnvImpl(Environment env)
Proxy to Environment.clearEnvImpl
|
static EnvironmentMutableConfig |
cloneMutableConfig(EnvironmentMutableConfig config)
Proxy to EnvironmentMutableConfig.cloneMutableConfig()
|
static void |
closeInternalHandle(Environment env)
Proxy to Environment.closeInternalHandle
|
static void |
copyMutablePropsTo(EnvironmentMutableConfig config,
EnvironmentMutableConfig toConfig)
Proxy to EnvironmentMutableConfig.copyMutablePropsTo()
|
static OperationResult |
deleteInternal(Cursor cursor,
ReplicationContext repContext)
Proxy to Cursor.deleteInternal()
|
static OperationResult |
deleteWithRepContext(Cursor cursor,
ReplicationContext repContext)
Proxy to Cursor.deleteWithRepContext()
|
static void |
disableParameterValidation(EnvironmentMutableConfig config)
Proxy to EnvironmentMutableConfig.validateParams.
|
static void |
excludeFromOpStats(Cursor cursor)
Proxy to Cursor.excludeFromOpStats
|
static boolean |
getCheckpointUP(EnvironmentConfig config)
Proxy to EnvironmentConfig.getCheckpointUP()
|
static SecondaryIntegrityException |
getCorruptedCause(Database db) |
static boolean |
getCreateEP(EnvironmentConfig config)
Proxy to EnvironmentConfig.getCreateEP()
|
static boolean |
getCreateUP(EnvironmentConfig config)
Proxy to EnvironmentConfig.getCreateUP()
|
static CursorImpl |
getCursorImpl(Cursor cursor)
Proxy to Cursor.getCursorImpl()
|
static DatabaseImpl |
getDbImpl(Database db)
Proxy to Database.getDbImpl()
|
static TransactionConfig |
getDefaultTxnConfig(Environment env)
Proxy to Environment.getDefaultTxnConfig()
|
static DiskOrderedCursorImpl |
getDiskOrderedCursorImpl(DiskOrderedCursor cursor) |
static Environment |
getEnvironment(Transaction txn)
Proxy to Transaction.getEnvironment()
|
static EnvironmentImpl |
getEnvironmentImpl(Environment env)
Proxy to Environment.getMaybeNullEnvImpl.
|
static Locker |
getLocker(Transaction txn)
Proxy to Transaction.getLocker()
|
static EnvironmentImpl |
getNonNullEnvImpl(Environment env)
Proxy to Environment.getNonNullEnvImpl
This method is called to access the underlying EnvironmentImpl when an
env is expected to be open, to guard against NPE when the env has been
closed.
|
static SecondaryConfig |
getPrivateSecondaryConfig(SecondaryDatabase secDb)
Proxy to SecondaryDatabase.getPrivateSecondaryConfig
|
static Properties |
getProps(EnvironmentMutableConfig config)
Proxy to EnvironmentMutableConfig.getProps
|
static ReadOptions |
getReadOptions(LockMode lockMode) |
static SecondaryAssociation |
getSecondaryAssociation(Database db)
Proxy to SecondaryDatabase.getSecondaryAssociation
|
static Cursor[] |
getSortedCursors(JoinCursor cursor)
Proxy to JoinCursor.getSortedCursors()
|
static Txn |
getTxn(Transaction transaction) |
static boolean |
getTxnReadCommitted(EnvironmentConfig config)
Proxy to EnvironmentConfig.setTxnReadCommitted()
|
static void |
invalidate(Database db)
Proxy to Database.invalidate()
|
static boolean |
isCorrupted(Database db) |
static Cursor |
makeCursor(DatabaseImpl databaseImpl,
Locker locker,
CursorConfig cursorConfig)
Create a Cursor for internal use from a DatabaseImpl.
|
static Cursor |
makeCursor(DatabaseImpl databaseImpl,
Locker locker,
CursorConfig cursorConfig,
boolean retainNonTxnLocks)
Create a Cursor for internal use from a DatabaseImpl, specifying
retainNonTxnLocks.
|
static Cursor |
makeCursor(Database dbHandle,
Locker locker,
CursorConfig cursorConfig)
Create a Cursor from a DatabaseHandle.
|
static Cursor |
makeCursor(Database dbHandle,
Locker locker,
CursorConfig cursorConfig,
boolean retainNonTxnLocks) |
static ExceptionEvent |
makeExceptionEvent(Exception e,
String n) |
static OperationResult |
makeResult(int expiration,
boolean expirationInHours) |
static OperationResult |
makeResult(long time) |
static OperationResult |
makeUpdateResult(int expiration,
boolean expirationInHours) |
static OperationResult |
position(Cursor cursor,
DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode,
boolean first)
Proxy to Cursor.position().
|
static OperationResult |
putForReplay(Cursor cursor,
DatabaseEntry key,
DatabaseEntry data,
LN ln,
int expiration,
boolean expirationInHours,
PutMode putMode,
ReplicationContext repContext)
Proxy to Cursor.putForReplay()
|
static OperationResult |
putWithRepContext(Cursor cursor,
DatabaseEntry key,
DatabaseEntry data,
PutMode putMode,
ReplicationContext repContext)
Proxy to Cursor.putWithRepContext()
|
static boolean |
readPrimaryAfterGet(Cursor cursor,
Database priDb,
DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
LockMode lockMode,
boolean secDirtyRead,
boolean lockPrimaryOnly,
boolean allowNoData,
Locker locker,
SecondaryDatabase secDb,
SecondaryAssociation secAssoc)
Proxy to Cursor.readPrimaryAfterGet
|
static OperationResult |
retrieveNext(Cursor cursor,
DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode,
GetMode getMode)
Proxy to Cursor.retrieveNext().
|
static OperationStatus |
search(Cursor cursor,
DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
DbInternal.Search searchMode,
LockMode lockMode)
Deprecated.
use new-style API below instead.
|
static OperationResult |
search(Cursor cursor,
DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
DbInternal.Search searchMode,
ReadOptions options)
Finds the key according to the Search param.
|
static OperationResult |
search(Cursor cursor,
DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode,
CacheMode cacheMode,
SearchMode searchMode,
boolean countOpStat)
Proxy to Cursor.search().
|
static OperationStatus |
searchBoth(Cursor cursor,
DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
DbInternal.Search searchMode,
LockMode lockMode)
Deprecated.
use new-style API below instead.
|
static OperationResult |
searchBoth(Cursor cursor,
DatabaseEntry key,
DatabaseEntry pKey,
DatabaseEntry data,
DbInternal.Search searchMode,
ReadOptions options)
Searches with the dups for the given key and finds the dup matching the
pKey value, according to the Search param.
|
static OperationResult |
searchForReplay(Cursor cursor,
DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode,
SearchMode searchMode)
Proxy to Cursor.searchForReplay().
|
static void |
setCheckpointUP(EnvironmentConfig config,
boolean checkpointUP)
Proxy to EnvironmentConfig.setCheckpointUP()
|
static void |
setCreateEP(EnvironmentConfig config,
boolean val)
Proxy to EnvironmentConfig.setCreateEP()
|
static void |
setCreateUP(EnvironmentConfig config,
boolean val)
Proxy to EnvironmentConfig.setCreateUP()
|
static void |
setLoadPropertyFile(EnvironmentConfig config,
boolean loadProperties)
Proxy to EnvironmentConfig.setLoadPropertyFile()
|
static void |
setNonCloning(Cursor cursor,
boolean nonSticky)
Deprecated.
use
CursorConfig.setNonSticky(boolean) instead. |
static void |
setPreempted(Database db,
String dbName,
String msg)
Proxy to Database.setPreempted()
|
static void |
setTxnReadCommitted(EnvironmentConfig config,
boolean txnReadCommitted)
Proxy to EnvironmentConfig.setTxnReadCommitted()
|
static void |
setUseExistingConfig(DatabaseConfig config,
boolean useExistingConfig)
Proxy to DatabaseConfig.setUseExistingConfig()
|
static void |
validate(DatabaseConfig config1,
DatabaseConfig config2)
Proxy to DatabaseConfig.validate(DatabaseConfig()
|
public static OperationResult DEFAULT_RESULT
public static void invalidate(Database db)
public static void setPreempted(Database db, String dbName, String msg)
public static EnvironmentImpl getEnvironmentImpl(Environment env)
public static EnvironmentImpl getNonNullEnvImpl(Environment env)
IllegalStateException - if the env has been closed.public static void clearEnvImpl(Environment env)
public static EnvironmentImpl checkOpen(Environment env)
public static void closeInternalHandle(Environment env)
public static SecondaryAssociation getSecondaryAssociation(Database db)
public static SecondaryConfig getPrivateSecondaryConfig(SecondaryDatabase secDb)
public static void excludeFromOpStats(Cursor cursor)
public static boolean readPrimaryAfterGet(Cursor cursor, Database priDb, DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode, boolean secDirtyRead, boolean lockPrimaryOnly, boolean allowNoData, Locker locker, SecondaryDatabase secDb, SecondaryAssociation secAssoc)
public static OperationResult position(Cursor cursor, DatabaseEntry key, DatabaseEntry data, LockMode lockMode, boolean first)
public static OperationResult search(Cursor cursor, DatabaseEntry key, DatabaseEntry data, LockMode lockMode, CacheMode cacheMode, SearchMode searchMode, boolean countOpStat)
public static OperationResult searchForReplay(Cursor cursor, DatabaseEntry key, DatabaseEntry data, LockMode lockMode, SearchMode searchMode)
public static OperationResult retrieveNext(Cursor cursor, DatabaseEntry key, DatabaseEntry data, LockMode lockMode, GetMode getMode) throws DatabaseException
DatabaseExceptionpublic static boolean advanceCursor(Cursor cursor, DatabaseEntry key, DatabaseEntry data)
public static OperationResult deleteInternal(Cursor cursor, ReplicationContext repContext)
public static OperationResult deleteWithRepContext(Cursor cursor, ReplicationContext repContext)
public static OperationResult putForReplay(Cursor cursor, DatabaseEntry key, DatabaseEntry data, LN ln, int expiration, boolean expirationInHours, PutMode putMode, ReplicationContext repContext)
public static OperationResult putWithRepContext(Cursor cursor, DatabaseEntry key, DatabaseEntry data, PutMode putMode, ReplicationContext repContext)
public static OperationStatus search(Cursor cursor, DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, DbInternal.Search searchMode, LockMode lockMode)
public static OperationResult search(Cursor cursor, DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, DbInternal.Search searchMode, ReadOptions options)
public static OperationStatus searchBoth(Cursor cursor, DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, DbInternal.Search searchMode, LockMode lockMode)
public static OperationResult searchBoth(Cursor cursor, DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, DbInternal.Search searchMode, ReadOptions options)
public static CursorImpl getCursorImpl(Cursor cursor)
public static Cursor makeCursor(DatabaseImpl databaseImpl, Locker locker, CursorConfig cursorConfig)
public static Cursor makeCursor(DatabaseImpl databaseImpl, Locker locker, CursorConfig cursorConfig, boolean retainNonTxnLocks)
public static Cursor makeCursor(Database dbHandle, Locker locker, CursorConfig cursorConfig)
public static Cursor makeCursor(Database dbHandle, Locker locker, CursorConfig cursorConfig, boolean retainNonTxnLocks)
public static void setNonCloning(Cursor cursor, boolean nonSticky)
CursorConfig.setNonSticky(boolean) instead.public static boolean isCorrupted(Database db)
public static SecondaryIntegrityException getCorruptedCause(Database db)
public static DatabaseImpl getDbImpl(Database db)
public static Cursor[] getSortedCursors(JoinCursor cursor)
public static void setLoadPropertyFile(EnvironmentConfig config, boolean loadProperties)
public static void setCreateUP(EnvironmentConfig config, boolean val)
public static boolean getCreateUP(EnvironmentConfig config)
public static void setCreateEP(EnvironmentConfig config, boolean val)
public static boolean getCreateEP(EnvironmentConfig config)
public static void setCheckpointUP(EnvironmentConfig config, boolean checkpointUP)
public static boolean getCheckpointUP(EnvironmentConfig config)
public static void setTxnReadCommitted(EnvironmentConfig config, boolean txnReadCommitted)
public static boolean getTxnReadCommitted(EnvironmentConfig config)
public static EnvironmentMutableConfig cloneMutableConfig(EnvironmentMutableConfig config)
public static void checkImmutablePropsForEquality(EnvironmentMutableConfig config, Properties handleConfigProps) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void copyMutablePropsTo(EnvironmentMutableConfig config, EnvironmentMutableConfig toConfig)
public static void disableParameterValidation(EnvironmentMutableConfig config)
public static Properties getProps(EnvironmentMutableConfig config)
public static void setUseExistingConfig(DatabaseConfig config, boolean useExistingConfig)
public static void validate(DatabaseConfig config1, DatabaseConfig config2) throws DatabaseException
DatabaseExceptionpublic static Locker getLocker(Transaction txn) throws DatabaseException
DatabaseExceptionpublic static Environment getEnvironment(Transaction txn) throws DatabaseException
DatabaseExceptionpublic static TransactionConfig getDefaultTxnConfig(Environment env)
public static Transaction beginInternalTransaction(Environment env, TransactionConfig config)
public static ExceptionEvent makeExceptionEvent(Exception e, String n)
public static Txn getTxn(Transaction transaction)
public static DiskOrderedCursorImpl getDiskOrderedCursorImpl(DiskOrderedCursor cursor)
public static OperationResult makeResult(long time)
public static OperationResult makeResult(int expiration, boolean expirationInHours)
public static OperationResult makeUpdateResult(int expiration, boolean expirationInHours)
public static ReadOptions getReadOptions(LockMode lockMode)
Copyright © 2024. All rights reserved.