| Package | Description |
|---|---|
| com.sleepycat.je |
Foundation for creating environments, databases and transactions; provides
cursor based data access.
|
| com.sleepycat.je.dbi |
INTERNAL: Underlying XxxImpl classes for Environment, Database and Cursor,
plus other misc classes (originally, dbi meant "db internal interface").
|
| com.sleepycat.je.evictor |
INTERNAL: Evicts data from the main and off-heap caches when they overflow.
|
| com.sleepycat.je.tree |
INTERNAL: Btree data structure (the JE main cache), including persistent
nodes classes, and Btree access methods.
|
| com.sleepycat.persist |
The Direct Persistence Layer (DPL) adds a persistent object model to the
Berkeley DB transactional engine.
|
| Modifier and Type | Method and Description |
|---|---|
CacheMode |
WriteOptions.getCacheMode()
Returns the
CacheMode to be used for the operation, or null
if the Cursor, Database or Environment default will be used. |
CacheMode |
DatabaseConfig.getCacheMode()
Returns the default
CacheMode used for operations performed on
this database, or null if the environment default is used. |
CacheMode |
EnvironmentMutableConfig.getCacheMode()
Returns the default
CacheMode used for operations performed in
this environment, or null if DEFAULT is used. |
CacheMode |
Cursor.getCacheMode()
Returns the default
CacheMode used for subsequent operations
performed using this cursor. |
CacheMode |
ReadOptions.getCacheMode()
Returns the
CacheMode to be used for the operation, or null
if the Cursor, Database or Environment default will be used. |
static CacheMode |
CacheMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheMode[] |
CacheMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SecondaryDatabase.populateSecondaries(Transaction txn,
DatabaseEntry key,
DatabaseEntry data,
long expirationTime,
CacheMode cacheMode) |
void |
Database.populateSecondaries(Transaction txn,
DatabaseEntry key,
DatabaseEntry data,
long expirationTime,
CacheMode cacheMode) |
static OperationResult |
DbInternal.search(Cursor cursor,
DatabaseEntry key,
DatabaseEntry data,
LockMode lockMode,
CacheMode cacheMode,
SearchMode searchMode,
boolean countOpStat)
Proxy to Cursor.search().
|
WriteOptions |
WriteOptions.setCacheMode(CacheMode cacheMode)
Sets the
CacheMode to be used for the operation. |
DatabaseConfig |
DatabaseConfig.setCacheMode(CacheMode cacheMode)
Sets the default
CacheMode used for operations performed on this
database. |
EnvironmentMutableConfig |
EnvironmentMutableConfig.setCacheMode(CacheMode cacheMode)
Sets the default
CacheMode used for operations performed in this
environment. |
void |
Cursor.setCacheMode(CacheMode cacheMode)
Sets the
CacheMode default used for subsequent operations
performed using this cursor. |
ReadOptions |
ReadOptions.setCacheMode(CacheMode cacheMode)
Sets the
CacheMode to be used for the operation. |
void |
DatabaseConfig.setCacheModeVoid(CacheMode cacheMode) |
void |
EnvironmentMutableConfig.setCacheModeVoid(CacheMode cacheMode) |
| Modifier and Type | Method and Description |
|---|---|
CacheMode |
CursorImpl.getCacheMode() |
CacheMode |
DatabaseImpl.getDefaultCacheMode()
Returns the default cache mode for this database.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DatabaseImpl.setCacheMode(CacheMode mode)
Sets the default mode for this database (all handles).
|
void |
CursorImpl.setCacheMode(CacheMode mode)
Sets the effective cache mode to use for the next operation.
|
| Modifier and Type | Method and Description |
|---|---|
long |
Evictor.doCacheModeEvict(IN target,
CacheMode cacheMode)
Evict a specific IN, used by cache modes.
|
void |
OffHeapCache.freeRedundantLN(BIN bin,
int index,
LN ln,
CacheMode cacheMode) |
LN |
OffHeapCache.loadLN(BIN bin,
int index,
CacheMode cacheMode) |
| Modifier and Type | Method and Description |
|---|---|
IN |
IN.fetchIN(int idx,
CacheMode cacheMode)
Returns the idx-th child of "this" upper IN, fetching the child from
the log and attaching it to its parent if it is not already attached.
|
LN |
IN.fetchLN(int idx,
CacheMode cacheMode)
Returns the target of the idx'th entry, fetching from disk if necessary.
|
Node |
IN.fetchLNOrDIN(int idx,
CacheMode cacheMode) |
BIN |
Tree.findBinForInsert(byte[] key,
CacheMode cacheMode)
Find the BIN that is relevant to the insert.
|
BIN |
Tree.getFirstNode(CacheMode cacheMode)
Find the leftmost node (IN or BIN) in the tree.
|
BIN |
Tree.getLastNode(CacheMode cacheMode)
Find the rightmost node (IN or BIN) in the tree.
|
LN |
IN.getLN(int idx,
CacheMode cacheMode)
Return the idx'th LN target, enforcing rules defined by the cache modes
for the LN.
|
BIN |
Tree.getNextBin(BIN bin,
CacheMode cacheMode)
Return a reference to the adjacent BIN.
|
IN |
Tree.getNextIN(IN prevIn,
boolean forward,
boolean latchShared,
CacheMode cacheMode)
Returns the next IN in the tree before/after the given IN, and at the
same level.
|
boolean |
Tree.getParentBINForChildLN(TreeLocation location,
byte[] key,
boolean splitsAllowed,
boolean blindDeltaOps,
CacheMode cacheMode)
Return a reference to the parent of this LN.
|
SearchResult |
Tree.getParentINForChildIN(IN child,
boolean useTargetLevel,
boolean doFetch,
CacheMode cacheMode)
Search for the parent P of a given IN C (where C is viewed as a logical
node; not as a java obj).
|
SearchResult |
Tree.getParentINForChildIN(IN child,
boolean useTargetLevel,
boolean doFetch,
CacheMode cacheMode,
List<TrackingInfo> trackingList)
This version of getParentINForChildIN does the same thing as the version
above, but also adds a "trackingList" param.
|
SearchResult |
Tree.getParentINForChildIN(long targetNodeId,
byte[] targetKey,
int targetLevel,
int exclusiveLevel,
boolean requireExactMatch,
boolean doFetch,
CacheMode cacheMode,
List<TrackingInfo> trackingList)
This version of getParentINForChildIN() is the actual implementation
of the previous 2 versions (read the comments there), but it also
implements one additional use cases via the extra "requireExactMatch"
param.
|
BIN |
Tree.getPrevBin(BIN bin,
CacheMode cacheMode)
Return a reference to the previous BIN.
|
IN |
Tree.getRootIN(CacheMode cacheMode)
Helper to obtain the root IN with shared root latching.
|
IN |
Tree.getRootINLatchedExclusive(CacheMode cacheMode)
Helper to obtain the root IN with exclusive root latching.
|
IN |
Tree.getRootINRootAlreadyLatched(CacheMode cacheMode,
boolean exclusive)
Helper to obtain the root IN, when the root latch is already held.
|
long |
BIN.getVLSN(int idx,
boolean allowFetch,
CacheMode cacheMode)
Returns the VLSN.
|
void |
IN.latch(CacheMode cacheMode)
Latch this node exclusive and update the LRU using the given cacheMode.
|
boolean |
IN.latchNoWait(CacheMode cacheMode)
Latch this node if it is not latched by another thread.
|
void |
IN.latchShared(CacheMode cacheMode)
Latch this node shared and update the LRU using the given cacheMode.
|
void |
Node.latchShared(CacheMode ignore) |
IN |
IN.loadIN(int idx,
CacheMode cacheMode)
Returns the idx-th child of "this" upper IN, loading the child from
off-heap and attaching it to its parent if it is not already attached
and is cached off-heap.
|
BIN |
Tree.search(byte[] key,
CacheMode cacheMode) |
BIN |
Tree.search(byte[] key,
Tree.SearchType searchType,
BINBoundary binBoundary,
CacheMode cacheMode,
Comparator<byte[]> comparator)
Search the tree, starting at the root.
|
BIN |
Tree.searchSplitsAllowed(byte[] key,
CacheMode cacheMode)
Do a key based search, permitting pre-emptive splits.
|
void |
IN.updateLRU(CacheMode cacheMode) |
| Modifier and Type | Method and Description |
|---|---|
CacheMode |
EntityCursor.getCacheMode()
Returns the default
CacheMode used for subsequent operations
performed using this cursor. |
| Modifier and Type | Method and Description |
|---|---|
void |
EntityCursor.setCacheMode(CacheMode cacheMode)
Changes the
CacheMode default used for subsequent operations
performed using this cursor. |
Copyright © 2024. All rights reserved.