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
Class LoggableAllocActions  view LoggableAllocActions download LoggableAllocActions.java

java.lang.Object
  extended byorg.apache.derby.impl.store.raw.data.LoggableAllocActions
All Implemented Interfaces:
AllocationActions

public class LoggableAllocActions
extends java.lang.Object
implements AllocationActions


Constructor Summary
LoggableAllocActions()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggableAllocActions

public LoggableAllocActions()
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

Specified by:
actionAllocatePage in interface AllocationActions

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.

Specified by:
actionChainAllocPage in interface AllocationActions

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.

Specified by:
actionCompressSpaceOperation in interface AllocationActions