|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.utilint.DbLsn
public class DbLsn
DbLsn is a class that operates on Log Sequence Numbers (LSNs). An LSN is a long comprised of a file number (32b) and offset within that file (32b) which references a unique record in the database environment log. While LSNs are represented as long's, we operate on them using an abstraction and return longs from these methods so that we don't have to worry about the lack of unsigned quantities.
Field Summary | |
---|---|
(package private) static long |
INT_MASK
|
static long |
MAX_FILE_OFFSET
|
static long |
NULL_LSN
|
Method Summary | |
---|---|
static int |
compareTo(long lsn1,
long lsn2)
|
static String |
dumpString(long lsn,
int nSpaces)
|
static long |
getFileNumber(long lsn)
Return the file number for this DbLsn. |
static long |
getFileOffset(long lsn)
Return the file offset for this DbLsn. |
static long |
getNoCleaningDistance(long thisLsn,
long otherLsn,
long logFileSize)
Return the logsize in bytes between these two LSNs. |
static String |
getNoFormatString(long lsn)
|
long |
getTransactionIdX()
|
static long |
getWithCleaningDistance(long thisLsn,
FileManager fileManager,
long otherLsn,
long logFileSize)
Return the logsize in bytes between these two LSNs. |
boolean |
logEntryIsTransactionalX()
|
static long |
longToLsn(Long lsn)
|
static long |
makeLsn(long fileNumber,
long fileOffset)
|
static String |
toString(long lsn)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final long INT_MASK
public static final long MAX_FILE_OFFSET
public static final long NULL_LSN
Method Detail |
---|
public static long makeLsn(long fileNumber, long fileOffset)
public static long longToLsn(Long lsn)
public static long getFileNumber(long lsn)
public static long getFileOffset(long lsn)
public static int compareTo(long lsn1, long lsn2)
public static String toString(long lsn)
public static String getNoFormatString(long lsn)
public static String dumpString(long lsn, int nSpaces)
public static long getNoCleaningDistance(long thisLsn, long otherLsn, long logFileSize)
public static long getWithCleaningDistance(long thisLsn, FileManager fileManager, long otherLsn, long logFileSize)
public boolean logEntryIsTransactionalX()
LogReadable#logEntryIsTransactional.
public long getTransactionIdX()
LogReadable.getTransactionId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |