|
||||||||||
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.DirectAllocActions
Constructor Summary | |
DirectAllocActions()
|
Method Summary | |
void |
actionAllocatePage(RawTransaction t,
BasePage allocPage,
long pageNumber,
int doStatus,
int undoStatus)
Set the allocation status of pageNumber to doStatus. |
void |
actionChainAllocPage(RawTransaction t,
BasePage allocPage,
long pageNumber,
long pageOffset)
Chain one allocation page to the next. |
void |
actionCompressSpaceOperation(RawTransaction t,
BasePage allocPage,
int new_highest_page,
int num_pages_truncated)
Compress free pages. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DirectAllocActions()
Method Detail |
public void actionAllocatePage(RawTransaction t, BasePage allocPage, long pageNumber, int doStatus, int undoStatus) throws StandardException
actionAllocatePage
in interface AllocationActions
t
- The transactionallocPage
- the allocation pagepageNumber
- the page to allocation or deallocationdoStatus
- set the allocation status of the page this valueundoStatus
- on undo, set the allocation status of the page
this value
StandardException
- Standard Cloudscape error policypublic void actionChainAllocPage(RawTransaction t, BasePage allocPage, long pageNumber, long pageOffset) throws StandardException
actionChainAllocPage
in interface AllocationActions
t
- The transactionallocPage
- the allocation page whose next page chain needs
to be changedpageNumber
- the next allocation page's numberpageOffset
- the next allocation page's page offset
StandardException
- Standard Cloudscape error policypublic void actionCompressSpaceOperation(RawTransaction t, BasePage allocPage, int new_highest_page, int num_pages_truncated) throws StandardException
Compress the free pages at the end of the range maintained by this allocation page. All pages being compressed should be FREE. Only pages in the last allocation page can be compressed.
actionCompressSpaceOperation
in interface AllocationActions
t
- The transactionallocPage
- the allocation page to do compress on.new_highest_page
- 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
- 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.
StandardException
- Standard exception policy.
|
Built on Mon 2007-06-04 09:58:47+0400, from revision ??? | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |