Page#purgeAtSlot
| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected transient ByteArray | |
| protected int[] | |
| protected int |
| Access | Constructor and Description |
|---|---|
| pack-priv | PurgeOperation(RawTransaction t, BasePage page, int slot, int num_rows, int[] recordIds, boolean needDataLogged)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | doMe(Transaction
the Transaction xact, LogInstant the log instant of this operation instant, LimitObjectInput optional data in)Implements org. Apply the purge operation to the page. |
| public ByteArray | getPreparedLog()
Overrides org. Implements org. The log operations are responsible to create the ByteArray, and the log operations should write out any optional data for the change to the ByteArray. |
| public int | getTypeFormatId()
Implements org. Return my format identifier. |
| public void | readExternal(ObjectInput
the stream to read data from in order to restore the object in)Overrides org. Implements java. Read this in |
| public 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)Implements abstract org. restore the before image of the page |
| public String | toString()
Overrides org. DEBUG: Print self. |
| public void | undoMe(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)Implements abstract org. Undo the purge operation on the page. |
| public void | writeExternal(ObjectOutput
the stream to write the object to out)Overrides org. 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. |
| private void | writeOptionalDataToBuffer(RawTransaction t, boolean needDataLogged)
Write out the purged record from the page. |
| num_rows | back to summary |
|---|---|
| protected int num_rows | |
| preparedLog | back to summary |
|---|---|
| protected transient ByteArray preparedLog | |
| recordIds | back to summary |
|---|---|
| protected int[] recordIds | |
| slot | back to summary |
|---|---|
| protected int slot | |
| PurgeOperation | back to summary |
|---|---|
| pack-priv PurgeOperation(RawTransaction t, BasePage page, int slot, int num_rows, int[] recordIds, boolean needDataLogged) throws StandardException | |
| PurgeOperation | back to summary |
|---|---|
| public PurgeOperation() | |
| doMe | back to summary |
|---|---|
| public void doMe(Transaction xact, LogInstant instant, LimitObjectInput in) throws StandardException, IOException Implements org. Apply the purge operation to the page.
| |
| getPreparedLog | back to summary |
|---|---|
| public ByteArray getPreparedLog() Overrides org. Implements org. Doc from org. The log operations are responsible to create the ByteArray, and the log operations should write out any optional data for the change to the ByteArray. The ByteArray can be prepared when the log operation is constructed, or it can be prepared when getPreparedLog() is called. Called by the log manager to allow the log operation to pass the buffer which contains optional data that will be available in to doMe() methods. | |
| getTypeFormatId | back to summary |
|---|---|
| public int getTypeFormatId() Implements org. Return my format identifier.
| |
| readExternal | back to summary |
|---|---|
| public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Overrides org. Implements java. Read this in
| |
| restoreMe | back to summary |
|---|---|
| public void restoreMe(Transaction xact, BasePage undoPage, LogInstant CLRInstant, LimitObjectInput in) throws StandardException, IOException Implements abstract org. restore the before image of the page
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. DEBUG: Print self.
| |
| undoMe | back to summary |
|---|---|
| public void undoMe(Transaction xact, BasePage undoPage, LogInstant CLRInstant, LimitObjectInput in) throws StandardException, IOException Implements abstract org. Undo the purge operation on the page.
| |
| writeExternal | back to summary |
|---|---|
| public void writeExternal(ObjectOutput out) throws IOException Overrides org. 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.
| |
| writeOptionalDataToBuffer | back to summary |
|---|---|
| private void writeOptionalDataToBuffer(RawTransaction t, boolean needDataLogged) throws StandardException, IOException Write out the purged record from the page. Used for undo only.
| |