| java.lang.Object com.sleepycat.je.utilint.DbLsn
DbLsn | public class DbLsn (Code) | | 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.
|
INT_MASK | final static long INT_MASK(Code) | | |
MAX_FILE_OFFSET | final public static long MAX_FILE_OFFSET(Code) | | |
NULL_LSN | final public static long NULL_LSN(Code) | | |
compareTo | public static int compareTo(long lsn1, long lsn2)(Code) | | |
dumpString | public static String dumpString(long lsn, int nSpaces)(Code) | | |
getFileNumber | public static long getFileNumber(long lsn)(Code) | | Return the file number for this DbLsn.
the number for this DbLsn. |
getFileOffset | public static long getFileOffset(long lsn)(Code) | | Return the file offset for this DbLsn.
the offset for this DbLsn. |
getNoCleaningDistance | public static long getNoCleaningDistance(long thisLsn, long otherLsn, long logFileSize)(Code) | | Return the logsize in bytes between these two LSNs. This is an
approximation; the logs might actually be a little more or less in
size. This assumes that no log files have been cleaned.
|
getNoFormatString | public static String getNoFormatString(long lsn)(Code) | | |
getWithCleaningDistance | public static long getWithCleaningDistance(long thisLsn, FileManager fileManager, long otherLsn, long logFileSize)(Code) | | Return the logsize in bytes between these two LSNs. This is an
approximation; the logs might actually be a little more or less in
size. This assumes that log files might have been cleaned.
|
longToLsn | public static long longToLsn(Long lsn)(Code) | | |
makeLsn | public static long makeLsn(long fileNumber, long fileOffset)(Code) | | |
|
|