Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.impl.store.raw.data
Interface AllocationActions  view AllocationActions download AllocationActions.java

All Known Implementing Classes:
DirectAllocActions, LoggableAllocActions

public interface AllocationActions

This interface describe the operations that has to do with page allocation/deallocation. This interface is used for a special allocation page that records the allocation information and dispense the allocation policy.


Method Summary
 void actionAllocatePage(org.apache.derby.iapi.store.raw.xact.RawTransaction t, BasePage allocPage, long pageNumber, int doStatus, int undoStatus)
          Set the allocation status of pageNumber to doStatus.
 void actionChainAllocPage(org.apache.derby.iapi.store.raw.xact.RawTransaction t, BasePage allocPage, long pageNumber, long pageOffset)
          Chain one allocation page to the next.
 void actionCompressSpaceOperation(org.apache.derby.iapi.store.raw.xact.RawTransaction t, BasePage allocPage, int new_highest_page, int num_pages_truncated)
          Compress free pages.
 

Method Detail

actionAllocatePage

public void actionAllocatePage(org.apache.derby.iapi.store.raw.xact.RawTransaction t,
                               BasePage allocPage,
                               long pageNumber,
                               int doStatus,
                               int undoStatus)
                        throws org.apache.derby.iapi.error.StandardException
Set the allocation status of pageNumber to doStatus. To undo this operation, set the allocation status of pageNumber to undoStatus


actionChainAllocPage

public void actionChainAllocPage(org.apache.derby.iapi.store.raw.xact.RawTransaction t,
                                 BasePage allocPage,
                                 long pageNumber,
                                 long pageOffset)
                          throws org.apache.derby.iapi.error.StandardException
Chain one allocation page to the next.


actionCompressSpaceOperation

public void actionCompressSpaceOperation(org.apache.derby.iapi.store.raw.xact.RawTransaction t,
                                         BasePage allocPage,
                                         int new_highest_page,
                                         int num_pages_truncated)
                                  throws org.apache.derby.iapi.error.StandardException
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.