1 7 package com.jofti.btree; 8 9 10 11 import com.jofti.exception.JoftiException; 12 import com.jofti.oswego.concurrent.ReadWriteLock; 13 14 15 22 public interface INode { 23 24 25 31 public abstract Comparable getRightValue(); 32 33 34 35 40 public abstract void setRightValue(Comparable value); 41 42 43 44 public abstract boolean contains(Comparable value); 45 46 47 48 58 public abstract Object [] insertEntry(NodeEntry entry) throws JoftiException; 59 60 61 68 public abstract boolean deleteEntry(NodeEntry entry); 69 70 71 72 79 public abstract Node splitNode(Object [] entries) throws JoftiException; 80 81 82 86 public abstract int getEntryNumber(); 87 88 89 95 public abstract boolean isUnderFull(); 96 97 98 103 public abstract boolean isEmpty(); 104 105 106 111 public abstract boolean isDeleted(); 112 113 114 119 public abstract void setDeleted(boolean deleted); 120 121 122 126 public abstract Object [] getEntries(); 127 128 129 135 public abstract void setEntries(Object [] entries); 136 137 138 144 public abstract NodeLink getLinkNode(); 145 146 147 152 public abstract void setLinkNode(NodeLink node); 153 154 155 158 public abstract ReadWriteLock getNodeLock(); 159 160 public abstract boolean isLeaf(); 161 } | Popular Tags |