java.lang .Object org.apache.derby.impl.store.raw.log .LogCounter LogCounter public class LogCounter implements LogInstant (Code) A very simple log instant implementation.
Within the stored log record a log counter is represented as a long,
hence the getValueAsLong() method. Outside the LogFactory the instant
is passed around as a LogCounter (through its LogInstant interface).
The way the long is encoded is such that < == > correctly tells if
one log instant is lessThan, equals or greater than another.
Constructor Summary public LogCounter (long value) public LogCounter (long fileNumber, long position) public LogCounter () Public niladic constructor needed for Formatable interface.
DERBY_10_0_MAX_LOGFILE_NUMBER final public static long DERBY_10_0_MAX_LOGFILE_NUMBER (Code)
INVALID_LOG_INSTANT final public static long INVALID_LOG_INSTANT (Code) A well defined value of an invalid log instant.
MAX_LOGFILE_NUMBER final public static long MAX_LOGFILE_NUMBER (Code)
MAX_LOGFILE_SIZE final public static long MAX_LOGFILE_SIZE (Code)
LogCounter public LogCounter(long value)(Code)
LogCounter public LogCounter(long fileNumber, long position)(Code)
LogCounter public LogCounter()(Code) Public niladic constructor needed for Formatable interface.
getLogFileNumber final public static long getLogFileNumber(long valueAsLong) (Code)
getLogFileNumber public long getLogFileNumber()(Code)
getLogFilePosition final public static long getLogFilePosition(long valueAsLong) (Code)
getLogFilePosition public long getLogFilePosition()(Code)
getTypeFormatId public int getTypeFormatId()(Code) Get the formatID which corresponds to this class.
the formatID of this class
getValueAsLong public long getValueAsLong()(Code) These following methods are only intended to be called by an
implementation of a log factory. All other uses of this object should
only see it as a log instant.
hashCode public int hashCode()(Code)
makeLogInstantAsLong final public static long makeLogInstantAsLong(long filenum, long filepos) (Code) Static functions that can only be used inside the RawStore's log
factory which passes the log counter around encoded as a long
toDebugString public static String toDebugString(long instant)(Code)