Top Constructors Methods
org.apache.derby.impl.store.raw.data

public Class DirectAllocActions

extends Object
implements AllocationActions
Class Inheritance
All Implemented Interfaces
org.apache.derby.impl.store.raw.data.AllocationActions
Imports
org.apache.derby.impl.store.raw.data.AllocationActions, .BasePage, org.apache.derby.shared.common.sanity.SanityManager, org.apache.derby.iapi.services.io.FormatIdUtil, org.apache.derby.iapi.store.raw.Loggable, org.apache.derby.iapi.store.raw.xact.RawTransaction, org.apache.derby.iapi.store.raw.log.LogInstant, org.apache.derby.shared.common.error.StandardException

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
actionAllocatePage(RawTransaction
The transaction
t
,
BasePage
the allocation page
allocPage
,
long
the page to allocation or deallocation
pageNumber
,
int
set the allocation status of the page this value
doStatus
,
int
on undo, set the allocation status of the page this value
undoStatus
)

Implements org.apache.derby.impl.store.raw.data.AllocationActions.actionAllocatePage.

Set the allocation status of pageNumber to doStatus.

public void
actionChainAllocPage(RawTransaction
The transaction
t
,
BasePage
the allocation page whose next page chain needs to be changed
allocPage
,
long
the next allocation page's number
pageNumber
,
long
the next allocation page's page offset
pageOffset
)

Implements org.apache.derby.impl.store.raw.data.AllocationActions.actionChainAllocPage.

Chain one allocation page to the next.

public void
actionCompressSpaceOperation(RawTransaction
The transaction
t
,
BasePage
the allocation page to do compress on.
allocPage
,
int
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.
new_highest_page
,
int
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.
num_pages_truncated
)

Implements org.apache.derby.impl.store.raw.data.AllocationActions.actionCompressSpaceOperation.

Compress free pages.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DirectAllocActionsback to summary
public DirectAllocActions()

Method Detail

actionAllocatePageback to summary
public void actionAllocatePage(RawTransaction t, BasePage allocPage, long pageNumber, int doStatus, int undoStatus) throws StandardException

Implements org.apache.derby.impl.store.raw.data.AllocationActions.actionAllocatePage.

Set the allocation status of pageNumber to doStatus. To undo this operation, set the allocation status of pageNumber to undoStatus

Parameters
t:RawTransaction

The transaction

allocPage:BasePage

the allocation page

pageNumber:long

the page to allocation or deallocation

doStatus:int

set the allocation status of the page this value

undoStatus:int

on undo, set the allocation status of the page this value

Exceptions
StandardException:
Standard Derby error policy
actionChainAllocPageback to summary
public void actionChainAllocPage(RawTransaction t, BasePage allocPage, long pageNumber, long pageOffset) throws StandardException

Implements org.apache.derby.impl.store.raw.data.AllocationActions.actionChainAllocPage.

Chain one allocation page to the next.

Parameters
t:RawTransaction

The transaction

allocPage:BasePage

the allocation page whose next page chain needs to be changed

pageNumber:long

the next allocation page's number

pageOffset:long

the next allocation page's page offset

Exceptions
StandardException:
Standard Derby error policy
actionCompressSpaceOperationback to summary
public void actionCompressSpaceOperation(RawTransaction t, BasePage allocPage, int new_highest_page, int num_pages_truncated) throws StandardException

Implements org.apache.derby.impl.store.raw.data.AllocationActions.actionCompressSpaceOperation.

Compress free pages.

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.

Parameters
t:RawTransaction

The transaction

allocPage:BasePage

the allocation page to do compress on.

new_highest_page:int

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:int

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.

Exceptions
StandardException:
Standard exception policy.