| Package | Description |
|---|---|
| com.sleepycat.bind.serial |
Bindings that use Java serialization.
|
| com.sleepycat.collections |
Data access based on the standard Java collections API.
|
| com.sleepycat.compat |
INTERNAL: BDB/JE compatibility layer for bind, collections, DPL packages.
|
| com.sleepycat.je |
Foundation for creating environments, databases and transactions; provides
cursor based data access.
|
| com.sleepycat.je.cleaner |
INTERNAL: disk garbage collection.
|
| 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.rep |
Berkeley DB Java Edition High Availability (JE HA) enables replication of JE
environments.
|
| com.sleepycat.je.rep.impl |
INTERNAL: Top level HA implementation classes.
|
| com.sleepycat.je.rep.util.ldiff |
INTERNAL: LDiff debugging utility for comparing databases on different
nodes in a group.
|
| com.sleepycat.je.txn |
INTERNAL: Transaction management and locking (concurrency control).
|
| com.sleepycat.je.util.verify |
INTERNAL: Scheduled data verifier and Btree verification.
|
| com.sleepycat.persist |
The Direct Persistence Layer (DPL) adds a persistent object model to the
Berkeley DB transactional engine.
|
| com.sleepycat.persist.impl |
INTERNAL: Direct Persistence Layer (DPL) implementation.
|
| Constructor and Description |
|---|
StoredClassCatalog(Database database)
Creates a catalog based on a given database.
|
| Modifier and Type | Method and Description |
|---|---|
<K,V extends MarshalledTupleKeyEntity> |
TupleSerialFactory.newMap(Database db,
Class<K> keyClass,
Class<V> valueBaseClass,
boolean writeAllowed)
Creates a map from a previously opened Database object.
|
<K,V extends MarshalledTupleKeyEntity> |
TupleSerialFactory.newSortedMap(Database db,
Class<K> keyClass,
Class<V> valueBaseClass,
boolean writeAllowed)
Creates a sorted map from a previously opened Database object.
|
| Constructor and Description |
|---|
StoredKeySet(Database database,
EntryBinding<K> keyBinding,
boolean writeAllowed)
Creates a key set view of a
Database. |
StoredList(Database database,
EntityBinding<E> valueEntityBinding,
boolean writeAllowed)
Creates a list entity view of a
Database. |
StoredList(Database database,
EntityBinding<E> valueEntityBinding,
PrimaryKeyAssigner keyAssigner)
Creates a list entity view of a
Database with a PrimaryKeyAssigner. |
StoredList(Database database,
EntryBinding<E> valueBinding,
boolean writeAllowed)
Creates a list view of a
Database. |
StoredList(Database database,
EntryBinding<E> valueBinding,
PrimaryKeyAssigner keyAssigner)
Creates a list view of a
Database with a PrimaryKeyAssigner. |
StoredMap(Database database,
EntryBinding<K> keyBinding,
EntityBinding<V> valueEntityBinding,
boolean writeAllowed)
Creates a map entity view of a
Database. |
StoredMap(Database database,
EntryBinding<K> keyBinding,
EntityBinding<V> valueEntityBinding,
PrimaryKeyAssigner keyAssigner)
Creates a map entity view of a
Database with a PrimaryKeyAssigner. |
StoredMap(Database database,
EntryBinding<K> keyBinding,
EntryBinding<V> valueBinding,
boolean writeAllowed)
Creates a map view of a
Database. |
StoredMap(Database database,
EntryBinding<K> keyBinding,
EntryBinding<V> valueBinding,
PrimaryKeyAssigner keyAssigner)
Creates a map view of a
Database with a PrimaryKeyAssigner. |
StoredSortedKeySet(Database database,
EntryBinding<K> keyBinding,
boolean writeAllowed)
Creates a sorted key set view of a
Database. |
StoredSortedMap(Database database,
EntryBinding<K> keyBinding,
EntityBinding<V> valueEntityBinding,
boolean writeAllowed)
Creates a sorted map entity view of a
Database. |
StoredSortedMap(Database database,
EntryBinding<K> keyBinding,
EntityBinding<V> valueEntityBinding,
PrimaryKeyAssigner keyAssigner)
Creates a sorted map entity view of a
Database with a PrimaryKeyAssigner. |
StoredSortedMap(Database database,
EntryBinding<K> keyBinding,
EntryBinding<V> valueBinding,
boolean writeAllowed)
Creates a sorted map view of a
Database. |
StoredSortedMap(Database database,
EntryBinding<K> keyBinding,
EntryBinding<V> valueBinding,
PrimaryKeyAssigner keyAssigner)
Creates a sorted map view of a
Database with a PrimaryKeyAssigner. |
StoredSortedValueSet(Database database,
EntityBinding<E> valueEntityBinding,
boolean writeAllowed)
Creates a sorted value set entity view of a
Database. |
StoredValueSet(Database database,
EntityBinding<E> valueEntityBinding,
boolean writeAllowed)
Creates a value set entity view of a
Database. |
StoredValueSet(Database database,
EntryBinding<E> valueBinding,
boolean writeAllowed)
Creates a value set view of a
Database. |
| Modifier and Type | Method and Description |
|---|---|
static Database |
DbCompat.openDatabase(Environment env,
Transaction txn,
String fileName,
String dbName,
DatabaseConfig config)
Returns null if the database is not found (and AllowCreate is false) or
already exists (and ExclusiveCreate is true).
|
static Database |
DbCompat.testOpenDatabase(Environment env,
Transaction txn,
String file,
String name,
DatabaseConfig config)
Fires an assertion if the database is not found (and AllowCreate is
false) or already exists (and ExclusiveCreate is true).
|
| Modifier and Type | Method and Description |
|---|---|
static OperationStatus |
DbCompat.append(Database db,
Transaction txn,
DatabaseEntry key,
DatabaseEntry data) |
static long |
DbCompat.getDatabaseCount(Database db) |
static String |
DbCompat.getDatabaseFile(Database db) |
static SecondaryDatabase |
DbCompat.openSecondaryDatabase(Environment env,
Transaction txn,
String fileName,
String dbName,
Database primaryDatabase,
SecondaryConfig config)
Returns null if the database is not found (and AllowCreate is false) or
already exists (and ExclusiveCreate is true).
|
static SecondaryDatabase |
DbCompat.testOpenSecondaryDatabase(Environment env,
Transaction txn,
String file,
String name,
Database primary,
SecondaryConfig config)
Fires an assertion if the database is not found (and AllowCreate is
false) or already exists (and ExclusiveCreate is true).
|
| Modifier and Type | Class and Description |
|---|---|
class |
SecondaryDatabase
A secondary database handle.
|
| Modifier and Type | Method and Description |
|---|---|
Database |
JoinCursor.getDatabase()
Returns the primary database handle associated with this cursor.
|
Database |
DiskOrderedCursor.getDatabase()
Returns the Database handle for the database that contains the
latest record returned by getNext().
|
Database |
Sequence.getDatabase()
Returns the Database handle associated with this sequence.
|
Database |
ForwardCursor.getDatabase()
Returns the Database handle associated with this ForwardCursor.
|
Database |
Cursor.getDatabase()
Returns the Database handle associated with this Cursor.
|
Database |
SecondaryConfig.getForeignKeyDatabase()
Returns the database used to check the foreign key integrity constraint,
or null if no foreign key constraint will be checked.
|
Database |
SecondaryAssociation.getPrimary(DatabaseEntry primaryKey)
Returns the primary database for the given primary key.
|
Database |
SecondaryDatabase.getPrimaryDatabase()
Returns the primary database associated with this secondary database.
|
Database |
SecondaryCursor.getPrimaryDatabase()
Returns the primary
Database
associated with this cursor. |
Database |
Environment.openDatabase(Transaction txn,
String databaseName,
DatabaseConfig dbConfig)
Opens, and optionally creates, a
Database. |
| Modifier and Type | Method and Description |
|---|---|
static SecondaryIntegrityException |
DbInternal.getCorruptedCause(Database db) |
static DatabaseImpl |
DbInternal.getDbImpl(Database db)
Proxy to Database.getDbImpl()
|
static SecondaryAssociation |
DbInternal.getSecondaryAssociation(Database db)
Proxy to SecondaryDatabase.getSecondaryAssociation
|
static void |
DbInternal.invalidate(Database db)
Proxy to Database.invalidate()
|
static boolean |
DbInternal.isCorrupted(Database db) |
static Cursor |
DbInternal.makeCursor(Database dbHandle,
Locker locker,
CursorConfig cursorConfig)
Create a Cursor from a DatabaseHandle.
|
static Cursor |
DbInternal.makeCursor(Database dbHandle,
Locker locker,
CursorConfig cursorConfig,
boolean retainNonTxnLocks) |
DiskOrderedCursor |
Environment.openDiskOrderedCursor(Database[] databases,
DiskOrderedCursorConfig config)
Create a DiskOrderedCursor to iterate over the records of a given set
of databases.
|
SecondaryDatabase |
Environment.openSecondaryDatabase(Transaction txn,
String databaseName,
Database primaryDatabase,
SecondaryConfig dbConfig)
Opens and optionally creates a
SecondaryDatabase. |
PreloadStats |
Environment.preload(Database[] databases,
PreloadConfig config)
Preloads the cache with multiple databases.
|
static boolean |
DbInternal.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
|
SecondaryConfig |
SecondaryConfig.setForeignKeyDatabase(Database foreignKeyDatabase)
Defines a foreign key integrity constraint for a given foreign key
database.
|
void |
SecondaryConfig.setForeignKeyDatabaseVoid(Database foreignKeyDatabase) |
static void |
DbInternal.setPreempted(Database db,
String dbName,
String msg)
Proxy to Database.setPreempted()
|
| Constructor and Description |
|---|
SecondaryIntegrityException(Database secDb,
Locker locker,
String message,
String secDbName,
String priDbName,
DatabaseEntry secKey,
DatabaseEntry priKey,
long priLsn,
long expirationTime,
ExtinctionFilter.ExtinctionStatus extinctionStatus)
For internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
VerifyUtils.checkLsns(Database db)
Compare the LSNs referenced by a given Database to the lsns held
in the utilization profile.
|
| Modifier and Type | Method and Description |
|---|---|
Database |
DatabaseImpl.findPrimaryDatabase()
For this secondary database return the primary that it is associated
with, or null if not associated with any primary.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Database> |
DatabaseImpl.getReferringHandles()
Returns a copy of the referring database handles.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DatabaseImpl.addReferringHandle(Database db)
Add a referring handle
|
OperationFailureException |
EnvironmentImpl.createDatabasePreemptedException(String msg,
String dbName,
Database db)
For replicated environments only; only the overridden method should
ever be called.
|
void |
DatabaseImpl.removeReferringHandle(Database db)
Decrement the reference count.
|
static void |
TriggerManager.runOpenTriggers(Locker locker,
Database db,
boolean isNew)
Invokes the trigger methods associated with the opening of a database.
|
| Modifier and Type | Method and Description |
|---|---|
Database |
DatabasePreemptedException.getDatabase()
Returns the database handle that was forcibly closed.
|
| Constructor and Description |
|---|
DatabasePreemptedException(String message,
String dbName,
Database dbHandle)
For internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
DatabasePreemptedException |
RepImpl.createDatabasePreemptedException(String msg,
String dbName,
Database db) |
| Modifier and Type | Method and Description |
|---|---|
static Database |
LDiffUtil.openDb(Environment env,
String dbName) |
| Modifier and Type | Method and Description |
|---|---|
static void |
LDiffUtil.close(Environment env,
Database db) |
BlockBag |
LDiff.createBlockBag(Database db)
Create a bag of blocks from the records in a given database, using the
configuration parameters specified when the LDiff object was created.
|
boolean |
LDiff.diff(Database db,
BlockBag blkBag)
A mechanism for efficiently comparing two quiescent databases, typically
residing on different machines connected by a network.
|
boolean |
LDiff.diff(Database db1,
Database db2)
A mechanism for efficiently comparing two quiescent databases.
|
boolean |
LDiff.diff(Database db,
InetSocketAddress addr,
DataChannelFactory dcFactory)
A mechanism for efficiently comparing two quiescent databases, one of
which resides on a remote machine.
|
static void |
DiffRecordAnalyzer.doAnalysis(Database localDb,
Database remoteDb,
DiffTracker tracker,
boolean doPrint) |
static void |
DiffRecordAnalyzer.doAnalysis(Database localDb,
Protocol protocol,
DataChannel channel,
DiffTracker tracker,
boolean doPrint) |
Iterator<Block> |
LDiff.iterator(Database db) |
| Modifier and Type | Field and Description |
|---|---|
protected Set<Database> |
Txn.openedDatabaseHandles |
| Modifier and Type | Method and Description |
|---|---|
void |
Txn.addOpenedDatabase(Database dbHandle)
Called at the end of a database open operation to add the database
handle to a user txn.
|
void |
Locker.addOpenedDatabase(Database dbHandle) |
static Locker |
LockerFactory.getReadableLocker(Database dbHandle,
Locker locker,
boolean readCommittedIsolation)
Get a locker for this database handle for a read or cursor operation.
|
static Locker |
LockerFactory.getReadableLocker(Database dbHandle,
Transaction userTxn,
boolean readCommittedIsolation)
Get a locker for a read or cursor operation.
|
| Modifier and Type | Field and Description |
|---|---|
static TestHook<Database> |
BtreeVerifier.databaseOperBeforeBatchCheckHook |
static TestHook<Database> |
BtreeVerifier.databaseOperDuringBatchCheckHook |
| Modifier and Type | Method and Description |
|---|---|
Database |
EntityIndex.getDatabase()
Returns the underlying database for this index.
|
Database |
SecondaryIndex.getKeysDatabase()
Returns the underlying secondary database that is not associated with
the primary database and is used for the
SecondaryIndex.keysIndex. |
| Constructor and Description |
|---|
PrimaryIndex(Database database,
Class<PK> keyClass,
EntryBinding<PK> keyBinding,
Class<E> entityClass,
EntityBinding<E> entityBinding)
Creates a primary index without using an
EntityStore. |
SecondaryIndex(SecondaryDatabase database,
Database keysDatabase,
PrimaryIndex<PK,E> primaryIndex,
Class<SK> secondaryKeyClass,
EntryBinding<SK> secondaryKeyBinding)
Creates a secondary index without using an
EntityStore. |
| Modifier and Type | Method and Description |
|---|---|
void |
Store.SyncHook.onSync(Database db) |
Copyright © 2024. All rights reserved.