public class INFileReader extends FileReader
This file reader can also be run in tracking mode to keep track of the maximum node ID, database ID and txn ID seen so those sequences can be updated properly at recovery. In this mode it also performs utilization counting. It is only run once in tracking mode per recovery, in the first phase of recovery.
FileReader.EOFException, FileReader.ReadWindowcksumValidator, currentEntryHeader, currentEntryOffset, currentEntryPrevOffset, envImpl, eof, fileManager, forward, logger, nextEntryOffset, startLsn, window| Constructor and Description |
|---|
INFileReader(EnvironmentImpl env,
int readBufferSize,
long startLsn,
long finishLsn,
boolean trackIds,
long partialCkptStart,
long ckptEnd,
RecoveryUtilizationTracker tracker)
Create this reader to start at a given LSN.
|
INFileReader(EnvironmentImpl env,
int readBufferSize,
long startLsn,
long finishLsn,
boolean trackIds,
long partialCkptStart,
long ckptEnd,
RecoveryUtilizationTracker tracker,
Set<DatabaseId> logVersion8UpgradeDbs,
AtomicBoolean logVersion8UpgradeDeltas)
Create with logVersion8UpgradeDbs and logVersion8UpgradeDeltas params.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTargetType(LogEntryType entryType)
Configure this reader to target this kind of entry.
|
DatabaseId |
getDatabaseId()
Get the last databaseId seen by the reader.
|
IN |
getIN(DatabaseImpl dbImpl)
Get the last IN seen by the reader.
|
long |
getMaxDbId()
Get the maximum DB ID seen by the reader.
|
long |
getMaxExtinctionId()
Get the maximum extinction scan ID seen by the reader.
|
long |
getMaxNodeId()
Get the maximum node ID seen by the reader.
|
long |
getMaxTxnId()
Get the maximum txn ID seen by the reader.
|
long |
getMinReplicatedDbId() |
long |
getMinReplicatedExtinctionId()
Get the minimum extinction scan ID seen by the reader.
|
long |
getMinReplicatedNodeId() |
long |
getMinReplicatedTxnId() |
VLSNRecoveryProxy |
getVLSNProxy() |
boolean |
isBINDelta() |
boolean |
isDeleteInfo() |
boolean |
isDupDeleteInfo() |
protected boolean |
isTargetEntry()
If we're tracking node, database and txn IDs, we want to see all node
log entries.
|
protected boolean |
processEntry(ByteBuffer entryBuffer)
This reader returns non-provisional INs and IN delete entries.
|
entryIsReplicated, getAndResetNReads, getLastEntrySize, getLastLsn, getLastVlsn, getLogVersion, getNRepeatIteratorReads, getNumRead, handleGapInBackwardsScan, initStartingPosition, makeWindow, readNextEntry, readNextEntryAllowExceptions, setAlwaysValidateChecksum, setBackwardPosition, setForwardPosition, skipData, skipEntrypublic INFileReader(EnvironmentImpl env, int readBufferSize, long startLsn, long finishLsn, boolean trackIds, long partialCkptStart, long ckptEnd, RecoveryUtilizationTracker tracker)
public INFileReader(EnvironmentImpl env, int readBufferSize, long startLsn, long finishLsn, boolean trackIds, long partialCkptStart, long ckptEnd, RecoveryUtilizationTracker tracker, Set<DatabaseId> logVersion8UpgradeDbs, AtomicBoolean logVersion8UpgradeDeltas) throws DatabaseException
DatabaseExceptionpublic void addTargetType(LogEntryType entryType) throws DatabaseException
DatabaseExceptionprotected boolean isTargetEntry()
throws DatabaseException
isTargetEntry in class FileReaderDatabaseException - from subclasses.protected boolean processEntry(ByteBuffer entryBuffer) throws DatabaseException
processEntry in class FileReaderentryBuffer - A ByteBuffer that the logrec data and is positioned
at the start of the logrec body (i.e., just after the logrec header).DatabaseExceptionpublic IN getIN(DatabaseImpl dbImpl) throws DatabaseException
DatabaseExceptionpublic DatabaseId getDatabaseId()
public long getMaxNodeId()
public long getMinReplicatedNodeId()
public long getMaxDbId()
public long getMinReplicatedDbId()
public long getMaxTxnId()
public long getMinReplicatedTxnId()
public long getMaxExtinctionId()
public long getMinReplicatedExtinctionId()
public boolean isDeleteInfo()
public boolean isDupDeleteInfo()
public boolean isBINDelta()
public VLSNRecoveryProxy getVLSNProxy()
Copyright © 2024. All rights reserved.