|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.store.raw.data.PageBasicOperation
org.apache.derby.impl.store.raw.data.PhysicalPageOperation
org.apache.derby.impl.store.raw.data.CompressSpacePageOperation
public class CompressSpacePageOperation
Log operation to implement compressing space from a container and returning it to the operating system.
Field Summary | |
---|---|
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. |
Fields inherited from class org.apache.derby.impl.store.raw.data.PageBasicOperation |
---|
containerHdl, foundHere, page |
Fields inherited from interface org.apache.derby.iapi.store.raw.Loggable |
---|
ABORT, BI_LOG, CHECKSUM, COMMIT, COMPENSATION, FILE_RESOURCE, FIRST, LAST, PREPARE, RAWSTORE, XA_NEEDLOCK |
Constructor Summary | |
---|---|
CompressSpacePageOperation()
Public Methods of Formatable interface. |
|
CompressSpacePageOperation(AllocPage allocPage,
int highest_page,
int num_truncated)
Constructors for This class: |
Method Summary | |
---|---|
void |
doMe(Transaction tran,
LogInstant instant,
LimitObjectInput in)
Compress space from container. |
int |
getTypeFormatId()
Return my format identifier. |
void |
readExternal(java.io.ObjectInput in)
|
void |
restoreMe(Transaction xact,
BasePage undoPage,
LogInstant CLRinstant,
LimitObjectInput in)
Undo the change indicated by this log operation and optional data. |
java.lang.String |
toString()
debug |
void |
undoMe(Transaction xact,
BasePage undoPage,
LogInstant CLRInstant,
LimitObjectInput in)
Compress space undo. |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class org.apache.derby.impl.store.raw.data.PhysicalPageOperation |
---|
generateUndo |
Methods inherited from class org.apache.derby.impl.store.raw.data.PageBasicOperation |
---|
findpage, getPage, getPageForRedoRecovery, getPageId, getPageVersion, getPreparedLog, group, needsRedo, reclaimPrepareLocks, releaseResource, resetPageNumber |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.derby.iapi.store.raw.Loggable |
---|
getPreparedLog, group, needsRedo, releaseResource |
Field Detail |
---|
protected int newHighestPage
protected int num_pages_truncated
Constructor Detail |
---|
public CompressSpacePageOperation(AllocPage allocPage, int highest_page, int num_truncated) throws StandardException
StandardException
public CompressSpacePageOperation()
Method Detail |
---|
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class PageBasicOperation
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class PageBasicOperation
java.io.IOException
- error reading from log stream
java.lang.ClassNotFoundException
- cannot read object from inputpublic int getTypeFormatId()
public final void doMe(Transaction tran, LogInstant instant, LimitObjectInput in) throws StandardException
Compress the indicate space from the container, returning the free pages to the OS. Update the allocation page to reflect the file change.
tran
- transaction doing the operation.instant
- log instant for this operation.in
- unused by this log operation.
StandardException
- Standard exception policy.public void undoMe(Transaction xact, BasePage undoPage, LogInstant CLRInstant, LimitObjectInput in) throws StandardException
undoMe
in class PhysicalPageOperation
xact
- the Transaction doing the rollbackundoPage
- the page to rollback changes onCLRInstant
- the log instant of this (PageUndo) operationin
- optional data for the rollback operation
StandardException
- Thrown by methods I callPhysicalPageOperation.undoMe(org.apache.derby.iapi.store.raw.Transaction, org.apache.derby.impl.store.raw.data.BasePage, org.apache.derby.iapi.store.raw.log.LogInstant, org.apache.derby.iapi.services.io.LimitObjectInput)
public void restoreMe(Transaction xact, BasePage undoPage, LogInstant CLRinstant, LimitObjectInput in)
PageBasicOperation
restoreMe
in class PageBasicOperation
xact
- the Transaction doing the rollbackundoPage
- the page to rollback changes onCLRinstant
- the log instant of this (PageUndo) operationin
- optional data for the rollback operationpublic java.lang.String toString()
toString
in class PageBasicOperation
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |