Loggable
| Modifier and Type | Field and Description |
|---|---|
| protected transient RawContainerHandle | |
| protected transient boolean | |
| protected transient BasePage | |
| private PageKey | |
| private long |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final BasePage | Returns: null if container is dropped and committed (possibly stubbified), else return the latched pageFind the page the operation applies to and latch it, this only uses the segmentId, containerId, and pageId stored in this log record to find the page. |
| public final Page | |
| protected BasePage | getPageForRedoRecovery(Transaction xact)
Subclass (e.g., init page) that wishes to do something about missing pages in load tran should override this method to return the page |
| protected final PageKey | |
| public final long | |
| public ByteArray | getPreparedLog()
Implements org. the default for optional data is set to null. |
| public int | group()
Implements org. A page operation is a RAWSTORE log record |
| public final boolean | needsRedo(Transaction
The transaction trying to redo this operation xact)Implements org. Returns true if this op should be redone during recovery redo, if so, get and latched the page. |
| public void | readExternal(ObjectInput
the stream to read data from in order to restore the object in)Implements java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. |
| public void | reclaimPrepareLocks(Transaction t, LockingPolicy locking_policy)
Implements org. reclaim locks associated with the changes in this log record. |
| public void | releaseResource(Transaction xact)
Implements org. Release latched page and any other resources acquired during a previous findpage, safe to call multiple times.</nl> |
| protected final void | |
| public abstract void | restoreMe(Transaction
the Transaction doing the rollback xact, BasePage the page to rollback changes on undoPage, LogInstant the log instant of this (PageUndo) operation CLRinstant, LimitObjectInput optional data for the rollback operation in)Undo the change indicated by this log operation and optional data. |
| public String | |
| public void | writeExternal(ObjectOutput
the stream to write the object to out)Implements java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays. |
| containerHdl | back to summary |
|---|---|
| protected transient RawContainerHandle containerHdl | |
| foundHere | back to summary |
|---|---|
| protected transient boolean foundHere | |
| page | back to summary |
|---|---|
| protected transient BasePage page | |
| pageId | back to summary |
|---|---|
| private PageKey pageId | |
| pageVersion | back to summary |
|---|---|
| private long pageVersion | |
| PageBasicOperation | back to summary |
|---|---|
| pack-priv PageBasicOperation(BasePage page) | |
| PageBasicOperation | back to summary |
|---|---|
| pack-priv PageBasicOperation() | |
| findpage | back to summary |
|---|---|
| public final BasePage findpage(Transaction xact) throws StandardException Find the page the operation applies to and latch it, this only uses the segmentId, containerId, and pageId stored in this log record to find the page.
| |
| getPage | back to summary |
|---|---|
| public final Page getPage() | |
| getPageForRedoRecovery | back to summary |
|---|---|
| protected BasePage getPageForRedoRecovery(Transaction xact) throws StandardException Subclass (e.g., init page) that wishes to do something about missing pages in load tran should override this method to return the page
| |
| getPageId | back to summary |
|---|---|
| protected final PageKey getPageId() | |
| getPageVersion | back to summary |
|---|---|
| public final long getPageVersion() | |
| getPreparedLog | back to summary |
|---|---|
| public ByteArray getPreparedLog() throws StandardException Implements org. the default for optional data is set to null. If an operation has optional data, the operation need to prepare the optional data for this method. Warning If a log operation extends this class, and the operation has optional data, it MUST overwrite this method to return a ByteArray that contains the optional data.
| |
| group | back to summary |
|---|---|
| public int group() Implements org. A page operation is a RAWSTORE log record | |
| needsRedo | back to summary |
|---|---|
| public final boolean needsRedo(Transaction xact) throws StandardException Implements org. Returns true if this op should be redone during recovery redo, if so, get and latched the page.
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Implements java. Doc from java. The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.
| |
| reclaimPrepareLocks | back to summary |
|---|---|
| public void reclaimPrepareLocks(Transaction t, LockingPolicy locking_policy) throws StandardException Implements org. reclaim locks associated with the changes in this log record.
| |
| releaseResource | back to summary |
|---|---|
| public void releaseResource(Transaction xact) Implements org. Release latched page and any other resources acquired during a previous
findpage, safe to call multiple times.
In this RawStore implementataion, resource is acquired by a log
operation in one of two places
| |
| resetPageNumber | back to summary |
|---|---|
| protected final void resetPageNumber(long pageNumber) Reset the pageNumber | |
| restoreMe | back to summary |
|---|---|
| public abstract void restoreMe(Transaction xact, BasePage undoPage, LogInstant CLRinstant, LimitObjectInput in) throws StandardException, IOException Undo the change indicated by this log operation and optional data.
The page the undo should apply to is the latched undoPage.
The undoPage must be the same page as the doMe page and the undo
operation must restore the before image of the row that changed.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Implements java. Doc from java. The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.
| |