public class AvlPartition extends AbstractBTreePartition
ADD_CHILD, administrativeRoleAT, adminRoleIdx, aliasCache, aliasedObjectNameAT, aliasIdx, cacheSize, contextCsnAT, DEFAULT_CACHE_SIZE, entryCsnAT, entryCsnIdx, entryDnAT, entryUuidAT, isSyncOnWrite, master, objectClassAT, objectClassIdx, oneAliasIdx, optimizerEnabled, partitionPath, piarCache, presenceAT, presenceIdx, rdnIdx, REMOVE_CHILD, subAliasIdx, systemIndices, userIndicescontextEntry, 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 |
|---|---|
org.apache.directory.server.core.api.partition.PartitionReadTxn |
beginReadTransaction() |
org.apache.directory.server.core.api.partition.PartitionWriteTxn |
beginWriteTransaction() |
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() |
protected void |
doRepair() |
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
|
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, getSubordinates, getSuffixId, getSystemIndex, getSystemIndices, getUserIndex, getUserIndices, hasEntry, hasIndexOn, hasSystemIndexOn, hasUserIndexOn, isOptimizerEnabled, loadContextCsn, lookup, lookupCache, modify, modify, move, move, moveAndRename, moveAndRename, rename, rename, repair, 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 doRepair() throws org.apache.directory.api.ldap.model.exception.LdapException
doRepair in class org.apache.directory.server.core.api.partition.AbstractPartitionorg.apache.directory.api.ldap.model.exception.LdapExceptionprotected void doInit() throws org.apache.directory.api.ldap.model.exception.LdapException
doInit in class AbstractBTreePartitionorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic String getDefaultId()
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 org.apache.directory.api.ldap.model.exception.LdapException
AbstractBTreePartitionconvertAndInit in class AbstractBTreePartitionindex - the indexorg.apache.directory.api.ldap.model.exception.LdapException - If teh conversion failedprotected final Index createSystemIndex(String oid, URI path, boolean withReverse) throws org.apache.directory.api.ldap.model.exception.LdapException
createSystemIndex in class AbstractBTreePartitionoid - The Attribute OIDpath - The working directory where this index will be storedwithReverse - If the Reverse index must be created or notorg.apache.directory.api.ldap.model.exception.LdapException - If the index can't be createdpublic URI getPartitionPath()
getPartitionPath in interface StoregetPartitionPath in class AbstractBTreePartitionpublic org.apache.directory.server.core.api.partition.PartitionReadTxn beginReadTransaction()
public org.apache.directory.server.core.api.partition.PartitionWriteTxn beginWriteTransaction()
Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.