public class UndoReader extends Object
| Modifier and Type | Field and Description |
|---|---|
DatabaseImpl |
db |
LN |
ln |
LNLogEntry<?> |
logEntry |
int |
logEntrySize |
| Modifier and Type | Method and Description |
|---|---|
static UndoReader |
create(EnvironmentImpl envImpl,
long undoLsn,
Map<DatabaseId,DatabaseImpl> undoDatabases)
Set up an UndoReader when doing an undo or txn partial rollback for a
live txn.
|
static UndoReader |
createForRecovery(LNFileReader reader,
DbTree dbMapTree)
Set up an UndoReader when doing a recovery partial rollback.
|
String |
toString() |
public final LNLogEntry<?> logEntry
public final LN ln
public final int logEntrySize
public final DatabaseImpl db
public static UndoReader create(EnvironmentImpl envImpl, long undoLsn, Map<DatabaseId,DatabaseImpl> undoDatabases)
Never returns null. The DB ID of the LN must be present in undoDatabases, or a fatal exception is thrown.
public static UndoReader createForRecovery(LNFileReader reader, DbTree dbMapTree)
This method calls DbTree.getDb. The caller is responsible for calling DbTree.releaseDb on the db field.
Null is returned if the DB ID of the LN has been deleted.
Copyright © 2024. All rights reserved.