| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected int | |
| protected transient ByteArray | |
| protected int[] | |
| protected int[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | CopyRowsOperation(RawTransaction t, BasePage destPage, BasePage srcPage, int destSlot, int num_rows, int srcSlot, int[] recordIds)
|
| 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 change indicated by this operation and optional data. |
| 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. to undo this operation, purge all records that were copied over. |
| 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, BasePage srcPage, int srcSlot)
Write the rows that are to be copied into this page |
| destSlot | back to summary |
|---|---|
| protected int destSlot | |
| num_rows | back to summary |
|---|---|
| protected int num_rows | |
| preparedLog | back to summary |
|---|---|
| protected transient ByteArray preparedLog | |
| recordIds | back to summary |
|---|---|
| protected int[] recordIds | |
| reservedSpace | back to summary |
|---|---|
| protected int[] reservedSpace | |
| CopyRowsOperation | back to summary |
|---|---|
| pack-priv CopyRowsOperation(RawTransaction t, BasePage destPage, BasePage srcPage, int destSlot, int num_rows, int srcSlot, int[] recordIds) throws StandardException | |
| CopyRowsOperation | back to summary |
|---|---|
| public CopyRowsOperation() | |
| doMe | back to summary |
|---|---|
| public void doMe(Transaction xact, LogInstant instant, LimitObjectInput in) throws StandardException, IOException Implements org. Doc from org. Apply the change indicated by this operation and optional data.
If this method fail, the system will be shut down because the log
record has already been written to disk. Moreover, the log record will
be replayed during recovery and this doMe method will be called on the
same page again, so if it fails again, recovery will fail and the
database cannot be started. So it is very important to make sure that
every resource you need, such as disk space, has been acquired before
the logAndDo method is called!
The available() method of in indicates how much data can be read, i.e. how much was originally written.
| |
| 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.
| |
| 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, BasePage srcPage, int srcSlot) throws StandardException, IOException Write the rows that are to be copied into this page
| |