public class CleanerFileReader extends FileReader
FileReader.EOFException, FileReader.ReadWindowcksumValidator, currentEntryHeader, currentEntryOffset, currentEntryPrevOffset, envImpl, eof, fileManager, forward, logger, nextEntryOffset, startLsn, window| Constructor and Description |
|---|
CleanerFileReader(EnvironmentImpl env,
int readBufferSize,
long startLsn,
Long fileNum,
FileSummary fileSummary,
INSummary inSummary,
ExpirationTracker expTracker)
Create this reader to start at a given LSN.
|
| Modifier and Type | Method and Description |
|---|---|
void |
countExpired() |
void |
countObsolete()
Records the current log entry as obsolete in the FileSummary used to
count true utilization.
|
BIN |
getBINDelta() |
DatabaseId |
getDatabaseId()
Get the last databaseId seen by the reader.
|
FileHeader |
getFileHeader() |
VLSN |
getFirstVLSN()
Returns the first VLSN encountered, or NULL_VLSN if no entries were
replicated.
|
IN |
getIN(DatabaseImpl dbImpl)
Get the last entry seen by the reader as an IN.
|
VLSN |
getLastVLSN()
Returns the last VLSN encountered, or NULL_VLSN if no entries were
replicated.
|
LNLogEntry<?> |
getLNLogEntry()
Get the last LN log entry seen by the reader.
|
OldBINDelta |
getOldBINDelta() |
boolean |
isBINDelta() |
boolean |
isDbTree() |
boolean |
isFileHeader() |
boolean |
isIN() |
boolean |
isLN() |
boolean |
isOldBINDelta() |
protected boolean |
processEntry(ByteBuffer entryBuffer)
Process the header to track the last VLSN and count true utilization.
|
entryIsReplicated, getAndResetNReads, getLastEntrySize, getLastLsn, getLastVlsn, getLogVersion, getNRepeatIteratorReads, getNumRead, handleGapInBackwardsScan, initStartingPosition, isTargetEntry, makeWindow, readNextEntry, readNextEntryAllowExceptions, setAlwaysValidateChecksum, setBackwardPosition, setForwardPosition, skipData, skipEntrypublic CleanerFileReader(EnvironmentImpl env, int readBufferSize, long startLsn, Long fileNum, FileSummary fileSummary, INSummary inSummary, ExpirationTracker expTracker)
env - The relevant EnvironmentImpl.readBufferSize - buffer size in bytes for reading in log.startLsn - where to start in the log, or null for the beginning.fileNum - single file number.fileSummary - returns true utilization.inSummary - returns IN utilization.expTracker - if non-null, returns expiration info and disables
checkum verification (see FileProcessor.processFile(java.lang.Long, com.sleepycat.je.cleaner.FileSummary, com.sleepycat.je.cleaner.INSummary, com.sleepycat.je.cleaner.ExpirationTracker)).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 void countObsolete()
public void countExpired()
public boolean isIN()
public boolean isBINDelta()
public boolean isOldBINDelta()
public boolean isLN()
public boolean isDbTree()
public boolean isFileHeader()
public LNLogEntry<?> getLNLogEntry()
public IN getIN(DatabaseImpl dbImpl)
public BIN getBINDelta()
public OldBINDelta getOldBINDelta()
public FileHeader getFileHeader()
public DatabaseId getDatabaseId()
public VLSN getFirstVLSN()
public VLSN getLastVLSN()
Copyright © 2024. All rights reserved.