1 package com.daffodilwoods.daffodildb.server.datasystem.interfaces; 2 3 import com.daffodilwoods.database.resource.DException; 4 import com.daffodilwoods.daffodildb.utils.comparator.SuperComparator; 5 import com.daffodilwoods.daffodildb.server.sql99.utils._IndexPredicate; 6 import com.daffodilwoods.daffodildb.server.datasystem.indexsystem._IndexInformation; 7 import com.daffodilwoods.daffodildb.server.datasystem.btree.BTreeNavigator; 8 9 public interface _Index { 10 public _IndexInformation getIndexInformation() throws DException; 11 12 public void setIndexInformation(_IndexInformation indexInformation0) throws 13 DException; 14 15 public _IndexKey insert(_DatabaseUser user, Object key, Object value) throws 16 DException; 17 18 public void update(_DatabaseUser user, Object oldKey, Object newKey, 19 Object oldValue, Object newValue) throws DException; 20 21 public _IndexKey delete(_DatabaseUser user, Object key, Object value) throws 22 DException; 23 24 public _IndexKey delete(_DatabaseUser user, _IndexKey key) throws DException; 25 26 public void showBTree() throws DException; 27 28 public String [] getColumnNames() throws DException; 29 30 public SuperComparator getComparator(); 31 32 public Object seekFromTopRelative(_IndexPredicate[] condition) throws 33 DException; 34 35 public Object seekFromBottomRelative(_IndexPredicate[] condition) throws 36 DException; 37 38 public Object seek(Object indexKey) throws DException; 39 40 public Object seekFromTopRelative(Object key, Object indexKey) throws 41 DException; 42 43 public Object seekFromBottomRelative(Object key, Object indexKey) throws 44 DException; 45 46 public _IndexKey locateKey(Object indexKey, boolean top) throws DException; 47 48 public _IndexKey insert(Object key, Object value) throws DException; 49 50 public void update(Object oldKey, Object newKey, Object oldValue, 51 Object newValue) throws DException; 52 53 public _IndexKey delete(Object key, Object value) throws DException; 54 55 public Object seekAbsolute(Object key, Object indexKey) throws DException; 56 57 public int getSize(); 58 59 public boolean first(_IndexKey key) throws DException; 60 61 public boolean next(_IndexKey btreeKey) throws DException; 62 63 public boolean last(_IndexKey key) throws DException; 64 65 public boolean previous(_IndexKey btreeKey) throws DException; 66 67 public Object [] getUniqueColumnReference() throws DException; 68 69 public int getTotalNumberOfClusterLoadedInMemory(); 70 71 public void setDuplicateAllowed(boolean flag); 72 73 public boolean getDuplicateAllowed(); 74 75 public void releaseResource(_DatabaseUser user,boolean releaseCompletely) throws DException; 76 77 public _IndexKey keyInstance(); 78 79 BTreeNavigator getNavigator(); 80 81 public void setSize(int size); 82 } 83 | Popular Tags |