|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.xdbm.AbstractTable<K,V>
K - The keyV - The stored valuepublic abstract class AbstractTable<K,V>
A Abstract Table implementation aggregating the methods comon with all the different Table implementation.
| Field Summary | |
|---|---|
protected int |
count
the current count of entries in this Table |
protected Comparator<K> |
keyComparator
a key comparator for the keys in this Table |
protected String |
name
the name of this table |
protected org.apache.directory.shared.ldap.model.schema.SchemaManager |
schemaManager
The global SchemaManager |
protected Comparator<V> |
valueComparator
a value comparator for the values in this Table |
| Constructor Summary | |
|---|---|
protected |
AbstractTable(org.apache.directory.shared.ldap.model.schema.SchemaManager schemaManager,
String name,
Comparator<K> keyComparator,
Comparator<V> valueComparator)
Create an instance of Table |
| Method Summary | |
|---|---|
int |
count()
Gets the count of the number of records in this Table. |
Comparator<K> |
getKeyComparator()
Gets the key comparator used by this Table: may be null if this Table was not initialized with one. |
String |
getName()
Gets the name of this Table. |
Comparator<V> |
getValueComparator()
Gets the value comparator used by this Table: may be null if this Table was not initialized with one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.directory.server.xdbm.Table |
|---|
close, count, cursor, cursor, get, greaterThanCount, has, has, hasGreaterOrEqual, hasGreaterOrEqual, hasLessOrEqual, hasLessOrEqual, isDupsEnabled, lessThanCount, put, remove, remove, valueCursor |
| Field Detail |
|---|
protected final String name
protected org.apache.directory.shared.ldap.model.schema.SchemaManager schemaManager
protected final Comparator<K> keyComparator
protected final Comparator<V> valueComparator
protected int count
| Constructor Detail |
|---|
protected AbstractTable(org.apache.directory.shared.ldap.model.schema.SchemaManager schemaManager,
String name,
Comparator<K> keyComparator,
Comparator<V> valueComparator)
schemaManager - The server schemaManagername - the name of the tablekeyComparator - a key comparatorvalueComparator - a value comparator| Method Detail |
|---|
public Comparator<K> getKeyComparator()
getKeyComparator in interface Table<K,V>public Comparator<V> getValueComparator()
getValueComparator in interface Table<K,V>public String getName()
getName in interface Table<K,V>
public int count()
throws IOException
count in interface Table<K,V>IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||