|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.utilint.FileMapper
public class FileMapper
A FileMapper instance represents the VLSN->LSN mappings for a single log file. There are persistent FileMappers that are stored in the log, and temporary instances that are used for collecting mappings found in the log during recovery. Note that we only need to store the file offset portion of the lsn persistently on disk, because the file number is self evident. We still need to use longs in memory to represent the offset, since the file offset is an unsigned int.
Constructor Summary | |
---|---|
FileMapper(long fileNumber)
|
Method Summary | |
---|---|
long |
getFileNumber()
|
VLSN |
getLastCommitVLSN()
|
VLSN |
getLastSyncVLSN()
|
long |
getLSN(long vlsn)
|
java.util.Set<java.lang.Long> |
getVLSNs()
Return the set of VLSNs in this mapper. |
void |
putAll(FileMapper other)
Put all the VLSN->LSN mappings in the file mapper parameter into this one. |
void |
putLSN(long vlsn,
long lsn,
LogEntryType entryType)
Record the LSN location for this VLSN. |
static FileMapper |
readFromDatabase(DatabaseEntry data)
|
void |
removeLSN(long vlsn)
Individual mappings are removed if this VLSN is written more than once to the log, as might happen on some kind of replay. |
void |
setFileNumber(long fileNumber)
|
java.lang.String |
toString()
|
void |
writeToDatabase(Database fileMapperDb)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileMapper(long fileNumber)
Method Detail |
---|
public void setFileNumber(long fileNumber)
public long getFileNumber()
public VLSN getLastSyncVLSN()
public VLSN getLastCommitVLSN()
public void writeToDatabase(Database fileMapperDb) throws DatabaseException
DatabaseException
public static FileMapper readFromDatabase(DatabaseEntry data)
public void putLSN(long vlsn, long lsn, LogEntryType entryType)
public void putAll(FileMapper other)
public long getLSN(long vlsn)
public void removeLSN(long vlsn)
public java.util.Set<java.lang.Long> getVLSNs()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |