|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.xdbm.AbstractIndex<K,O,ID>
public abstract class AbstractIndex<K,O,ID>
A generic index implementation that is just used to hold the index configuration parameters (attributeId, cacheSize, wkDirPath). All other methods are not working.
| Field Summary | |
|---|---|
protected String |
attributeId
The attribute identifier for this index |
protected org.apache.directory.shared.ldap.model.schema.AttributeType |
attributeType
the attribute type resolved for this JdbmIndex |
protected int |
cacheSize
the size (number of index entries) for the cache |
protected boolean |
initialized
whether or not this index has been initialized |
| Fields inherited from interface org.apache.directory.server.xdbm.Index |
|---|
DEFAULT_INDEX_CACHE_SIZE |
| Constructor Summary | |
|---|---|
protected |
AbstractIndex()
Creates a new instance of AbstractIndex. |
protected |
AbstractIndex(String attributeId)
Creates a new instance of AbstractIndex. |
| Method Summary | |
|---|---|
org.apache.directory.shared.ldap.model.schema.AttributeType |
getAttribute()
Gets the attribute this Index is built upon. |
String |
getAttributeId()
Gets the attribute identifier set at configuration time for this index which may not be the OID but an alias name for the attributeType associated with this Index |
int |
getCacheSize()
Gets the size of the index cache in terms of the number of index entries to be cached. |
boolean |
isDupsEnabled()
tells whether the Index implementation supports storing duplicate keys |
protected void |
protect(String property)
Protects configuration properties from being set after initialization. |
void |
setAttributeId(String attributeId)
Sets the attribute identifier set at configuration time for this index which may not be the OID but an alias name for the attributeType associated with this Index |
void |
setCacheSize(int cacheSize)
Sets the size of the index cache in terms of the number of index entries to be cached. |
| 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.Index |
|---|
add, close, count, count, drop, drop, forward, forward, forwardCursor, forwardCursor, forwardGreaterOrEq, forwardGreaterOrEq, forwardLessOrEq, forwardLessOrEq, forwardLookup, forwardValueCursor, getNormalized, getWkDirPath, greaterThanCount, lessThanCount, reverse, reverse, reverseCursor, reverseCursor, reverseGreaterOrEq, reverseGreaterOrEq, reverseLessOrEq, reverseLessOrEq, reverseLookup, reverseValueCursor, setWkDirPath, sync |
| Field Detail |
|---|
protected String attributeId
protected org.apache.directory.shared.ldap.model.schema.AttributeType attributeType
protected int cacheSize
protected boolean initialized
| Constructor Detail |
|---|
protected AbstractIndex()
attributeId - the attribute IDprotected AbstractIndex(String attributeId)
attributeId - the attribute ID| Method Detail |
|---|
public String getAttributeId()
Index
getAttributeId in interface Index<K,O,ID>public org.apache.directory.shared.ldap.model.schema.AttributeType getAttribute()
getAttribute in interface Index<K,O,ID>public void setAttributeId(String attributeId)
Index
setAttributeId in interface Index<K,O,ID>attributeId - configured attribute oid or alias namepublic boolean isDupsEnabled()
isDupsEnabled in interface Index<K,O,ID>public int getCacheSize()
getCacheSize in interface Index<K,O,ID>public void setCacheSize(int cacheSize)
setCacheSize in interface Index<K,O,ID>cacheSize - the size of the index cacheprotected void protect(String property)
property - the property to protect
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||