1 21 22 package org.apache.derby.impl.store.raw.data; 23 24 import org.apache.derby.impl.store.raw.data.AllocationActions; 25 import org.apache.derby.impl.store.raw.data.BasePage; 26 27 import org.apache.derby.iapi.services.sanity.SanityManager; 28 import org.apache.derby.iapi.services.io.FormatIdUtil; 29 30 import org.apache.derby.iapi.store.raw.Loggable; 31 import org.apache.derby.iapi.store.raw.xact.RawTransaction; 32 import org.apache.derby.iapi.store.raw.log.LogInstant; 33 34 import org.apache.derby.iapi.error.StandardException; 35 36 public class DirectAllocActions implements AllocationActions { 37 38 public DirectAllocActions() { 39 } 40 41 54 public void actionAllocatePage(RawTransaction t, BasePage allocPage, 55 long pageNumber, int doStatus, int undoStatus) 56 throws StandardException 57 { 58 ((AllocPage)allocPage).setPageStatus((LogInstant)null, pageNumber, doStatus); 59 } 60 61 72 public void actionChainAllocPage(RawTransaction t, BasePage allocPage, 73 long pageNumber, long pageOffset) 74 throws StandardException 75 { 76 ((AllocPage)allocPage).chainNextAllocPage((LogInstant)null, pageNumber, 77 pageOffset); 78 } 79 80 105 public void actionCompressSpaceOperation( 106 RawTransaction t, 107 BasePage allocPage, 108 int new_highest_page, 109 int num_pages_truncated) 110 throws StandardException 111 { 112 ((AllocPage)allocPage).compressSpace( 113 (LogInstant)null, new_highest_page, num_pages_truncated); 114 } 115 } 116 | Popular Tags |