public class AvlPartition extends AbstractBTreePartition
ADD_CHILD, ADMINISTRATIVE_ROLE_AT, adminRoleIdx, aliasCache, ALIASED_OBJECT_NAME_AT, aliasIdx, cacheSize, CONTEXT_CSN_AT, DEFAULT_CACHE_SIZE, ENTRY_CSN_AT, ENTRY_DN_AT, ENTRY_UUID_AT, entryCsnIdx, isSyncOnWrite, master, OBJECT_CLASS_AT, objectClassIdx, oneAliasIdx, optimizerEnabled, partitionPath, piarCache, presenceIdx, rdnIdx, REMOVE_CHILD, subAliasIdx, systemIndices, userIndicescacheService, contextEntry, ctxCsnChanged, dnFactory, id, initialized, schemaManager, suffixDnSYS_INDEX_OID_ARRAY, SYS_INDEX_OIDS| 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,
org.apache.directory.server.core.api.DnFactory dnFactory)
Creates a store based on AVL Trees.
|
| Modifier and Type | Method and Description |
|---|---|
protected Index<?,String> |
convertAndInit(Index<?,String> index)
Convert and initialize an index for a specific store implementation.
|
protected Index |
createSystemIndex(String oid,
URI path,
boolean withReverse)
Create a new Index for a given OID
|
protected void |
doInit() |
int |
getCacheSize()
Always returns 0 (zero), cause this is a in-memory store
|
String |
getDefaultId() |
URI |
getPartitionPath()
Gets the path in which this Partition stores data.
|
String |
getRootId() |
boolean |
isSyncOnWrite()
always returns false, cause this is a in-memory store
|
void |
sync() |
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, updateRdnIdxpublic AvlPartition(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
schemaManager - the schema managerpublic AvlPartition(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
org.apache.directory.server.core.api.DnFactory dnFactory)
schemaManager - the schema managerdnFactory - the DN factoryprotected void doInit()
throws Exception
doInit in class AbstractBTreePartitionExceptionpublic String getDefaultId()
public String getRootId()
public 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<?,String> convertAndInit(Index<?,String> index) throws Exception
AbstractBTreePartitionconvertAndInit in class AbstractBTreePartitionindex - the indexExceptionprotected final Index createSystemIndex(String oid, URI path, boolean withReverse) throws Exception
createSystemIndex in class AbstractBTreePartitionoid - The Attribute OIDpath - The working directory where this indew will be storedException - If the index can't be createdpublic URI getPartitionPath()
getPartitionPath in interface StoregetPartitionPath in class AbstractBTreePartitionCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.