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, userIndices
contextEntry, ctxCsnChanged, dnFactory, id, initialized, schemaManager, suffixDn
SYS_INDEX_OID_ARRAY, SYS_INDEX_OIDS
DEFAULT_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 |
---|---|
PartitionReadTxn |
beginReadTransaction()
Start a read transaction
|
PartitionWriteTxn |
beginWriteTransaction()
Start a write transaction
|
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()
Override this method to put your initialization code.
|
protected void |
doRepair()
Override this method to implement a repair method
|
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, updateRdnIdx
checkInitialized, destroy, getContextEntry, getId, getSchemaManager, getSuffixDn, initialize, isInitialized, setContextCsn, setContextEntry, setId, setSchemaManager, setSuffixDn, sync
public 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 doRepair() throws org.apache.directory.api.ldap.model.exception.LdapException
doRepair
in class AbstractPartition
org.apache.directory.api.ldap.model.exception.LdapException
- If the repair failedprotected void doInit() throws org.apache.directory.api.ldap.model.exception.LdapException
doInit
in class AbstractBTreePartition
org.apache.directory.api.ldap.model.exception.LdapException
- If the initialization failedpublic String getDefaultId()
public boolean isSyncOnWrite()
isSyncOnWrite
in interface Store
isSyncOnWrite
in class AbstractBTreePartition
true
if we write to disk for every modificationpublic int getCacheSize()
getCacheSize
in interface Store
getCacheSize
in class AbstractBTreePartition
protected Index<?,String> convertAndInit(Index<?,String> index) throws org.apache.directory.api.ldap.model.exception.LdapException
AbstractBTreePartition
convertAndInit
in class AbstractBTreePartition
index
- 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 AbstractBTreePartition
oid
- 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 Store
getPartitionPath
in class AbstractBTreePartition
public PartitionReadTxn beginReadTransaction()
Partition
public PartitionWriteTxn beginWriteTransaction()
Partition
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.