LogRecordEndingpublic class LogRecordEnding extends Object implements SerializableA class containing ending information for a log record. |
Fields Summary |
---|
static final int | SIZEOFThis constant holds the size of the LogRecordEnding object. | LogLSN | currentLSNThe log record ending contains the current LSN. |
Constructors Summary |
---|
LogRecordEnding()Default LogRecordEnding constructor.
| LogRecordEnding(byte[] bytes, int index)Constructs a LogReocrdEnding from the given byte array.
currentLSN = new LogLSN(bytes,index);
|
Methods Summary |
---|
final int | toBytes(byte[] bytes, int index)Makes a byte representation of the LogRecordEnding.
currentLSN.toBytes(bytes,index);
return SIZEOF;
| public final java.lang.String | toString()This method is called to direct the object to format its state to a String.
return "LRE(curr="/*#Frozen*/+currentLSN+")"/*#Frozen*/;
|
|