|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.directory.server.core.partition.avl.AvlTable<K,V>
public class AvlTable<K,V>
A Table implementation backed by in memory AVL tree.
| Constructor Summary | |
|---|---|
AvlTable(java.lang.String name,
java.util.Comparator<K> keyComparator,
java.util.Comparator<V> valComparator,
boolean dupsEnabled)
|
|
| Method Summary | |
|---|---|
void |
close()
Does nothing. |
int |
count()
|
int |
count(K key)
|
org.apache.directory.shared.ldap.cursor.Cursor<Tuple<K,V>> |
cursor()
|
org.apache.directory.shared.ldap.cursor.Cursor<Tuple<K,V>> |
cursor(K key)
|
V |
get(K key)
|
java.util.Comparator<K> |
getKeyComparator()
|
java.lang.String |
getName()
|
java.util.Comparator<V> |
getValueComparator()
|
int |
greaterThanCount(K key)
|
boolean |
has(K key)
|
boolean |
has(K key,
V value)
|
boolean |
hasGreaterOrEqual(K key)
|
boolean |
hasGreaterOrEqual(K key,
V val)
|
boolean |
hasLessOrEqual(K key)
|
boolean |
hasLessOrEqual(K key,
V val)
|
boolean |
isCountExact()
|
boolean |
isDupsEnabled()
|
int |
lessThanCount(K key)
|
void |
put(K key,
V value)
|
void |
remove(K key)
|
void |
remove(K key,
V value)
|
org.apache.directory.shared.ldap.cursor.Cursor<V> |
valueCursor(K key)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AvlTable(java.lang.String name,
java.util.Comparator<K> keyComparator,
java.util.Comparator<V> valComparator,
boolean dupsEnabled)
| Method Detail |
|---|
public void close()
throws java.lang.Exception
close in interface Table<K,V>java.lang.Exception
public int count()
throws java.lang.Exception
count in interface Table<K,V>java.lang.Exception
public int count(K key)
throws java.lang.Exception
count in interface Table<K,V>java.lang.Exception
public V get(K key)
throws java.lang.Exception
get in interface Table<K,V>java.lang.Exceptionpublic java.util.Comparator<K> getKeyComparator()
getKeyComparator in interface Table<K,V>public java.util.Comparator<V> getValueComparator()
getValueComparator in interface Table<K,V>public java.lang.String getName()
getName in interface Table<K,V>
public int greaterThanCount(K key)
throws java.lang.Exception
greaterThanCount in interface Table<K,V>java.lang.Exception
public boolean has(K key)
throws java.lang.Exception
has in interface Table<K,V>java.lang.Exception
public boolean has(K key,
V value)
throws java.lang.Exception
has in interface Table<K,V>java.lang.Exception
public boolean hasGreaterOrEqual(K key)
throws java.lang.Exception
hasGreaterOrEqual in interface Table<K,V>java.lang.Exception
public boolean hasGreaterOrEqual(K key,
V val)
throws java.lang.Exception
hasGreaterOrEqual in interface Table<K,V>java.lang.Exception
public boolean hasLessOrEqual(K key)
throws java.lang.Exception
hasLessOrEqual in interface Table<K,V>java.lang.Exception
public boolean hasLessOrEqual(K key,
V val)
throws java.lang.Exception
hasLessOrEqual in interface Table<K,V>java.lang.Exceptionpublic boolean isCountExact()
isCountExact in interface Table<K,V>public boolean isDupsEnabled()
isDupsEnabled in interface Table<K,V>
public int lessThanCount(K key)
throws java.lang.Exception
lessThanCount in interface Table<K,V>java.lang.Exception
public void put(K key,
V value)
throws java.lang.Exception
put in interface Table<K,V>java.lang.Exception
public void remove(K key)
throws java.lang.Exception
remove in interface Table<K,V>java.lang.Exception
public void remove(K key,
V value)
throws java.lang.Exception
remove in interface Table<K,V>java.lang.Exception
public org.apache.directory.shared.ldap.cursor.Cursor<Tuple<K,V>> cursor()
throws java.lang.Exception
cursor in interface Table<K,V>java.lang.Exception
public org.apache.directory.shared.ldap.cursor.Cursor<Tuple<K,V>> cursor(K key)
throws java.lang.Exception
cursor in interface Table<K,V>java.lang.Exception
public org.apache.directory.shared.ldap.cursor.Cursor<V> valueCursor(K key)
throws java.lang.Exception
valueCursor in interface Table<K,V>java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||