public class AvlPartition extends AbstractBTreePartition
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG
static logger
|
ADD_CHILD, administrativeRoleAT, adminRoleIdx, aliasCache, aliasedObjectNameAT, aliasIdx, cacheSize, contextCsnAT, DEFAULT_CACHE_SIZE, entryCsnAT, entryCsnIdx, entryDnAT, entryUuidAT, isSyncOnWrite, master, objectClassAT, objectClassIdx, oneAliasIdx, optimizerEnabled, partitionPath, piarCache, presenceIdx, rdnIdx, REMOVE_CHILD, subAliasIdx, systemIndices, userIndicescacheService, contextEntry, ctxCsnChanged, dnFactory, id, initialized, schemaManager, suffixDnSYS_INDEX_OID_ARRAY, SYS_INDEX_OIDSDEFAULT_ID, ROOT_ID| Constructor and Description |
|---|
AvlPartition(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
Creates a store based on AVL Trees.
|
AvlPartition(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
DnFactory dnFactory)
Creates a store based on AVL Trees.
|
| Modifier and Type | Method and Description |
|---|---|
protected Index<?,java.lang.String> |
convertAndInit(Index<?,java.lang.String> index)
Convert and initialize an index for a specific store implementation.
|
protected Index |
createSystemIndex(java.lang.String oid,
java.net.URI path,
boolean withReverse)
Create a new Index for a given OID
|
protected void |
doInit()
Override this method to put your initialization code.
|
int |
getCacheSize()
Always returns 0 (zero), cause this is a in-memory store
|
java.lang.String |
getDefaultId() |
java.net.URI |
getPartitionPath()
Gets the path in which this Partition stores data.
|
java.lang.String |
getRootId() |
boolean |
isSyncOnWrite()
always returns false, cause this is a in-memory store
|
void |
sync()
Flushes any changes made to this partition now.
|
add, addAliasIndices, addIndex, addIndexedAttributes, addToCache, buildEntryDn, count, delete, delete, doDestroy, dropAliasIndices, dropMovedAliasIndices, dumpIndex, dumpRdnIdx, fetch, fetch, getAdministrativeRoleIndex, getAliasCache, getAliasIndex, getChildCount, getContextCsn, getEntryCsnIndex, getEntryDn, getEntryId, getIndex, getIndexedAttributes, getMasterTable, getObjectClassIndex, getOneAliasIndex, getOptimizer, getParentId, getPresenceIndex, getRdnIndex, getReadWriteLock, getSearchEngine, getSubAliasIndex, getSuffixId, getSystemIndex, getSystemIndices, getUserIndex, getUserIndices, hasEntry, hasIndexOn, hasSystemIndexOn, hasUserIndexOn, isOptimizerEnabled, loadContextCsn, lookup, lookupCache, modify, modify, move, move, moveAndRename, moveAndRename, rename, rename, saveContextCsn, search, setCacheSize, setIndexedAttributes, setOptimizer, setOptimizerEnabled, setPartitionPath, setSearchEngine, setSyncOnWrite, setupSystemIndices, setupUserIndices, toString, unbind, updateCache, updateRdnIdxcheckInitialized, destroy, getContextEntry, getId, getSchemaManager, getSuffixDn, initialize, isInitialized, setCacheService, setContextCsn, setContextEntry, setId, setSchemaManager, setSuffixDnpublic AvlPartition(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
schemaManager - the schema managerpublic AvlPartition(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
DnFactory dnFactory)
schemaManager - the schema managerdnFactory - the DN factoryprotected void doInit()
throws java.lang.Exception
doInit in class AbstractBTreePartitionjava.lang.Exceptionpublic java.lang.String getDefaultId()
public java.lang.String getRootId()
public void sync()
throws java.lang.Exception
java.lang.Exception - if buffers cannot be flushed to diskpublic boolean isSyncOnWrite()
isSyncOnWrite in interface StoreisSyncOnWrite in class AbstractBTreePartitiontrue if we write to disk for every modificationpublic int getCacheSize()
getCacheSize in interface StoregetCacheSize in class AbstractBTreePartitionprotected Index<?,java.lang.String> convertAndInit(Index<?,java.lang.String> index) throws java.lang.Exception
AbstractBTreePartitionconvertAndInit in class AbstractBTreePartitionindex - the indexjava.lang.Exceptionprotected final Index createSystemIndex(java.lang.String oid, java.net.URI path, boolean withReverse) throws java.lang.Exception
createSystemIndex in class AbstractBTreePartitionoid - The Attribute OIDpath - The working directory where this indew will be storedjava.lang.Exception - If the index can't be createdpublic java.net.URI getPartitionPath()
getPartitionPath in interface StoregetPartitionPath in class AbstractBTreePartition