| Modifier and Type | Field and Description |
|---|---|
| protected int | newHighestPage
The new highest page on this allocation page. |
| protected int | num_pages_truncated
The number of allocated pages in this allocation page prior to the truncate. |
| Access | Constructor and Description |
|---|---|
| pack-priv | CompressSpacePageOperation(AllocPage allocPage, int highest_page, int num_truncated)
Constructors for This class: |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | doMe(Transaction
transaction doing the operation. tran, LogInstant log instant for this operation. instant, LimitObjectInput unused by this log operation. in)Implements org. Compress space from container. |
| 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. 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 | 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. Undo the change indicated by this log operation and optional data. |
| public String | |
| 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. Compress space undo. |
| 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. |
| newHighestPage | back to summary |
|---|---|
| protected int newHighestPage The new highest page on this allocation page. The number is the offset of the page in the array of pages maintained by this allocation page, for instance a value of 0 indicates all page except the first one are to be truncated. If all pages are truncated then the offset is set to -1. | |
| num_pages_truncated | back to summary |
|---|---|
| protected int num_pages_truncated The number of allocated pages in this allocation page prior to the truncate. Note that all pages from NewHighestPage+1 through newHighestPage+num_pages_truncated should be FREE. | |
| CompressSpacePageOperation | back to summary |
|---|---|
| pack-priv CompressSpacePageOperation(AllocPage allocPage, int highest_page, int num_truncated) throws StandardException Constructors for This class: | |
| CompressSpacePageOperation | back to summary |
|---|---|
| public CompressSpacePageOperation() Public Methods of Formatable interface. | |
| doMe | back to summary |
|---|---|
| public final void doMe(Transaction tran, LogInstant instant, LimitObjectInput in) throws StandardException Implements org. Compress space from container. Compress the indicate space from the container, returning the free pages to the OS. Update the allocation page to reflect the file change.
| |
| 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. 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.
| |
| restoreMe | back to summary |
|---|---|
| public void restoreMe(Transaction xact, BasePage undoPage, LogInstant CLRinstant, LimitObjectInput in) Implements abstract org. Doc from org. 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 org. debug
| |
| undoMe | back to summary |
|---|---|
| public void undoMe(Transaction xact, BasePage undoPage, LogInstant CLRInstant, LimitObjectInput in) throws StandardException Implements abstract org. Compress space undo.
| |
| 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.
| |