public class FileHeaderEntry extends SingleItemEntry<FileHeader>
| Constructor and Description |
|---|
FileHeaderEntry(Class<FileHeader> logClass)
Construct a log entry for reading.
|
FileHeaderEntry(LogEntryType entryType,
FileHeader item)
Construct a log entry for writing.
|
| Modifier and Type | Method and Description |
|---|---|
LogEntry |
clone() |
Class<T> |
getLogClass()
Returns the class of the contained loggable item or items, or null if
the instance was created to write an entry.
|
LogEntryType |
getLogType() |
Object |
getResolvedItem(DatabaseImpl dbImpl)
By default, this log entry is complete and does not require fetching
additional entries.
|
boolean |
isDeleted()
Returns whether this is a deleted LN.
|
boolean |
isImmediatelyObsolete(DatabaseImpl dbImpl)
Returns true if this item should be counted as obsolete when logged.
|
void |
postFetchInit(DatabaseImpl dbImpl) |
void |
postLogWork(LogEntryHeader header,
long justLoggedLsn,
VLSN vlsn)
Do any processing we need to do after logging, while under the logging
latch.
|
void |
readEntry(EnvironmentImpl envImpl,
LogEntryHeader header,
ByteBuffer entryBuffer)
For a file header, the version is not available until after reading the
item.
|
void |
setLogType(LogEntryType entryType)
Inform a BaseEntry instance of its corresponding LogEntryType.
|
String |
toString() |
create, create, dumpEntry, dumpRep, getDbId, getMainItem, getSize, getTransactionId, logicalEquals, writeEntryequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclone, getLogType, getResolvedItem, isDeleted, isImmediatelyObsolete, postLogWork, setLogTypepublic FileHeaderEntry(Class<FileHeader> logClass)
public FileHeaderEntry(LogEntryType entryType, FileHeader item)
public void readEntry(EnvironmentImpl envImpl, LogEntryHeader header, ByteBuffer entryBuffer)
readEntry in interface LogEntryreadEntry in class SingleItemEntry<FileHeader>public Class<T> getLogClass()
public void setLogType(LogEntryType entryType)
setLogType in interface LogEntrypublic LogEntryType getLogType()
getLogType in interface LogEntrypublic Object getResolvedItem(DatabaseImpl dbImpl)
getResolvedItem in interface LogEntrypublic boolean isImmediatelyObsolete(DatabaseImpl dbImpl)
LogEntryisImmediatelyObsolete in interface LogEntrypublic boolean isDeleted()
LogEntrypublic void postLogWork(LogEntryHeader header, long justLoggedLsn, VLSN vlsn)
postLogWork in interface LogEntryDatabaseException - from subclasses.public void postFetchInit(DatabaseImpl dbImpl)
public LogEntry clone()
Copyright © 2024. All rights reserved.