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, presenceIdx, rdnIdx, REMOVE_CHILD, subAliasIdx, systemIndices, userIndices
cacheService, 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 |
---|---|
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.
|
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()
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, updateRdnIdx
checkInitialized, destroy, getContextEntry, getId, getSchemaManager, getSuffixDn, initialize, isInitialized, setCacheService, setContextCsn, setContextEntry, setId, setSchemaManager, setSuffixDn
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 doInit() throws Exception
doInit
in class AbstractBTreePartition
Exception
public String getDefaultId()
public String getRootId()
public void sync() throws Exception
Exception
- if buffers cannot be flushed to diskpublic 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 Exception
AbstractBTreePartition
convertAndInit
in class AbstractBTreePartition
index
- the indexException
protected final Index createSystemIndex(String oid, URI path, boolean withReverse) throws Exception
createSystemIndex
in class AbstractBTreePartition
oid
- The Attribute OIDpath
- The working directory where this indew will be storedException
- If the index can't be createdpublic URI getPartitionPath()
getPartitionPath
in interface Store
getPartitionPath
in class AbstractBTreePartition
Copyright © 2019. All rights reserved.