public class FileMapper
extends java.lang.Object
Constructor and Description |
---|
FileMapper(long fileNumber) |
Modifier and Type | Method and Description |
---|---|
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) |
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