1 19 package org.netbeans.mdr.persistence.btreeimpl.btreeindex; 20 21 import org.netbeans.mdr.persistence.*; 22 import org.netbeans.mdr.persistence.btreeimpl.btreestorage.BtreeStorage; 23 29 public interface BtreePageSource extends MofidGenerator { 30 31 34 public EntryTypeInfo getPageIdInfo(); 35 36 45 public BtreePage getPage(byte[] pageId, Btree btree) 46 throws StorageException; 47 55 public BtreePage newPage(Btree btree) throws StorageException; 56 64 public BigKeyPage newBigKeyPage(Btree btree) throws StorageException; 65 72 public BtreePage getRootPage(Btree btree) throws StorageException; 73 78 public void unpinPage(BtreePage page); 79 85 public void unpinPage(BigKeyPage page) throws StorageException; 86 92 public void dirtyPage(BtreePage page) throws StorageException; 93 98 public void setNoPage(byte[] pageId); 99 104 public boolean isNoPage(byte[] pageId); 105 110 public int getPageIdLength(); 111 116 public int getPageSize(); 117 118 public BtreeStorage getStorage (); 119 120 } 121 | Popular Tags |