K
- The keyV
- The stored valuepublic abstract class AbstractTable<K,V> extends Object implements Table<K,V>
Modifier and Type | Field and Description |
---|---|
protected boolean |
allowsDuplicates
whether or not this table allows for duplicates
|
protected AtomicInteger |
commitNumber
A counter used to differ the commit on disk after N operations
|
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.api.ldap.model.schema.SchemaManager |
schemaManager
The global SchemaManager
|
protected Comparator<V> |
valueComparator
a value comparator for the values in this Table
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractTable(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
String name,
Comparator<K> keyComparator,
Comparator<V> valueComparator)
Create an instance of Table
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, count, cursor, cursor, get, greaterThanCount, has, has, hasGreaterOrEqual, hasGreaterOrEqual, hasLessOrEqual, hasLessOrEqual, isDupsEnabled, lessThanCount, put, remove, remove, valueCursor
protected org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager
protected final Comparator<K> keyComparator
protected final Comparator<V> valueComparator
protected int count
protected boolean allowsDuplicates
protected AtomicInteger commitNumber
protected AbstractTable(org.apache.directory.api.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 comparatorpublic Comparator<K> getKeyComparator()
getKeyComparator
in interface Table<K,V>
public Comparator<V> getValueComparator()
getValueComparator
in interface Table<K,V>
public int count() throws IOException
count
in interface Table<K,V>
IOException
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.