| Modifier and Type | Field and Description |
|---|---|
| public static final long | |
| private static final long | |
| private static final long | |
| private long | |
| private long | |
| public static final long | INVALID_LOG_INSTANT
Hides org. |
| public static final long | |
| public static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
a DatabaseInstant from the same database as
this. other)Overrides java. Implements org. Return true if this DatabaseInstant equals DatabaseInstant from the same database. |
| public static final long | |
| public long | |
| public static final long | |
| public long | |
| public int | Returns: the formatID of this classImplements org. Get the formatID which corresponds to this class. |
| public long | getValueAsLong()
These following methods are only intended to be called by an implementation of a log factory. |
| public int | |
| public boolean | lessThan(DatabaseInstant
a DatabaseInstant from the same database as
this. other)Implements org. LogScan methods |
| public static final long | makeLogInstantAsLong(long filenum, long filepos)
Static functions that can only be used inside the RawStore's log factory which passes the log counter around encoded as a long |
| public DatabaseInstant | next()
Implements org. Return the next higher DatabaseInstant. |
| public DatabaseInstant | prior()
Implements org. Return the next lower DatabaseInstant. |
| public void | readExternal(ObjectInput
the stream to read data from in order to restore the object oi)Implements java. Read this in. |
| public static String | |
| public String | toString()
Overrides java. Implements org. Convert the database instant to a string. |
| public void | writeExternal(ObjectOutput
the stream to write the object to oo)Implements java. Write this out. |
| DERBY_10_0_MAX_LOGFILE_NUMBER | back to summary |
|---|---|
| public static final long DERBY_10_0_MAX_LOGFILE_NUMBER | |
| FILE_NUMBER_SHIFT | back to summary |
|---|---|
| private static final long FILE_NUMBER_SHIFT | |
| FILE_POSITION_MASK | back to summary |
|---|---|
| private static final long FILE_POSITION_MASK | |
| fileNumber | back to summary |
|---|---|
| private long fileNumber | |
| filePosition | back to summary |
|---|---|
| private long filePosition | |
| INVALID_LOG_INSTANT | back to summary |
|---|---|
| public static final long INVALID_LOG_INSTANT Hides org. A well defined value of an invalid log instant. | |
| MAX_LOGFILE_NUMBER | back to summary |
|---|---|
| public static final long MAX_LOGFILE_NUMBER | |
| MAX_LOGFILE_SIZE | back to summary |
|---|---|
| public static final long MAX_LOGFILE_SIZE | |
| LogCounter | back to summary |
|---|---|
| public LogCounter(long value) | |
| LogCounter | back to summary |
|---|---|
| public LogCounter(long fileNumber, long position) | |
| LogCounter | back to summary |
|---|---|
| public LogCounter() Public niladic constructor needed for Formatable interface. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Implements org. Doc from org. Return true if this DatabaseInstant equals DatabaseInstant from the same database.
| |
| getLogFileNumber | back to summary |
|---|---|
| public static final long getLogFileNumber(long valueAsLong) | |
| getLogFileNumber | back to summary |
|---|---|
| public long getLogFileNumber() | |
| getLogFilePosition | back to summary |
|---|---|
| public static final long getLogFilePosition(long valueAsLong) | |
| getLogFilePosition | back to summary |
|---|---|
| public long getLogFilePosition() | |
| getTypeFormatId | back to summary |
|---|---|
| public int getTypeFormatId() Implements org. Get the formatID which corresponds to this class.
| |
| getValueAsLong | back to summary |
|---|---|
| public long getValueAsLong() 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 | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| lessThan | back to summary |
|---|---|
| public boolean lessThan(DatabaseInstant other) Implements org. LogScan methods
| |
| makeLogInstantAsLong | back to summary |
|---|---|
| public static final long makeLogInstantAsLong(long filenum, long filepos) Static functions that can only be used inside the RawStore's log factory which passes the log counter around encoded as a long | |
| next | back to summary |
|---|---|
| public DatabaseInstant next() Implements org. Doc from org. Return the next higher DatabaseInstant. There is no requirement that a transaction with the next instant exist in the database. It is required that this.lessThan( this.next()), and that no instant can be between this and this.next(). If the DatabaseInstant is implemented using a integer then next() should return a new DatabaseInstant formed by adding one to the integer.
| |
| prior | back to summary |
|---|---|
| public DatabaseInstant prior() Implements org. Doc from org. Return the next lower DatabaseInstant. There is no requirement that a transaction with the next instant exist in the database. It is required that this.prior().lessThan( this), and that no instant can be between this and this.prior(). If the DatabaseInstant is implemented using a integer then prior() should return a new DatabaseInstant formed by subtracting one from the integer.
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput oi) throws IOException, ClassNotFoundException Implements java. Read this in.
| |
| toDebugString | back to summary |
|---|---|
| public static String toDebugString(long instant) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements org. Doc from org. Convert the database instant to a string. This is mainly used for debugging.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput oo) throws IOException Implements java. Write this out.
| |