1 package com.jofti.core; 2 3 import java.util.Properties ; 4 5 import com.jofti.btree.EntrySplitWrapper; 6 import com.jofti.btree.IPage; 7 import com.jofti.exception.JoftiException; 8 import com.jofti.store.StoreWrapper; 9 10 22 public interface IStoreManager { 23 24 30 public abstract void init(Properties properties) throws JoftiException; 31 32 public abstract String getName(); 33 34 public abstract void setName(String name); 35 36 47 public IStoreKey store(IStoreKey key,IPage obj) throws JoftiException; 48 49 55 public void releasePage(IStoreKey key,IPage obj); 56 57 63 public IStoreKey getNextKey() throws JoftiException; 64 65 66 74 public StoreWrapper retrieve(IStoreKey key) throws JoftiException; 75 76 80 public void removeAll() throws JoftiException; 81 82 88 public void remove(IStoreKey key, IPage page) throws JoftiException; 89 90 98 public EntrySplitWrapper[] split(IPage page, int entryNumber); 99 100 101 } | Popular Tags |