public class MavibotPartition 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 |
---|
MavibotPartition(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager,
DnFactory dnFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addToCache(String id,
org.apache.directory.api.ldap.model.entry.Entry entry)
adds the given entry to cache
Note: this method is not called during add operation to avoid filling the cache
with all the added entries
|
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 indexOid,
URI path,
boolean withReverse)
Create a new Index for a given OID
|
protected void |
doDestroy(PartitionTxn partitionTxn)
Override this method to put your initialization code.
|
protected void |
doInit()
Override this method to put your initialization code.
|
protected void |
doRepair()
Override this method to implement a repair method
|
Set<Index<?,String>> |
getAllIndices() |
String |
getDefaultId()
}
|
org.apache.directory.mavibot.btree.RecordManager |
getRecordMan() |
String |
getRootId() |
org.apache.directory.api.ldap.model.entry.Entry |
lookupCache(String id)
looks up for the entry with the given ID in the cache
|
void |
updateCache(OperationContext opCtx)
updates the cache based on the type of OperationContext
|
add, addAliasIndices, addIndex, addIndexedAttributes, buildEntryDn, count, delete, delete, dropAliasIndices, dropMovedAliasIndices, dumpIndex, dumpRdnIdx, fetch, fetch, getAdministrativeRoleIndex, getAliasCache, getAliasIndex, getCacheSize, getChildCount, getContextCsn, getEntryCsnIndex, getEntryDn, getEntryId, getIndex, getIndexedAttributes, getMasterTable, getObjectClassIndex, getOneAliasIndex, getOptimizer, getParentId, getPartitionPath, getPresenceIndex, getRdnIndex, getReadWriteLock, getSearchEngine, getSubAliasIndex, getSubordinates, getSuffixId, getSystemIndex, getSystemIndices, getUserIndex, getUserIndices, hasEntry, hasIndexOn, hasSystemIndexOn, hasUserIndexOn, isOptimizerEnabled, isSyncOnWrite, loadContextCsn, lookup, modify, modify, move, move, moveAndRename, moveAndRename, rename, rename, repair, saveContextCsn, search, setCacheSize, setIndexedAttributes, setOptimizer, setOptimizerEnabled, setPartitionPath, setSearchEngine, setSyncOnWrite, setupSystemIndices, setupUserIndices, toString, unbind, updateRdnIdx
checkInitialized, destroy, getContextEntry, getId, getSchemaManager, getSuffixDn, initialize, isInitialized, setContextCsn, setContextEntry, setId, setSchemaManager, setSuffixDn, sync
public MavibotPartition(org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager, DnFactory dnFactory)
protected 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 failedprotected 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 void doDestroy(PartitionTxn partitionTxn) throws org.apache.directory.api.ldap.model.exception.LdapException
doDestroy
in class AbstractBTreePartition
partitionTxn
- The transaction to useorg.apache.directory.api.ldap.model.exception.LdapException
- If the destroy call failedprotected Index createSystemIndex(String indexOid, URI path, boolean withReverse) throws org.apache.directory.api.ldap.model.exception.LdapException
AbstractBTreePartition
createSystemIndex
in class AbstractBTreePartition
indexOid
- 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 String getDefaultId()
public org.apache.directory.mavibot.btree.RecordManager getRecordMan()
public org.apache.directory.api.ldap.model.entry.Entry lookupCache(String id)
lookupCache
in class AbstractBTreePartition
id
- the ID of the entrypublic void addToCache(String id, org.apache.directory.api.ldap.model.entry.Entry entry)
AbstractBTreePartition
addToCache
in class AbstractBTreePartition
id
- ID of the entryentry
- the Entrypublic void updateCache(OperationContext opCtx)
AbstractBTreePartition
updateCache
in class AbstractBTreePartition
opCtx
- the operation's contextpublic Set<Index<?,String>> getAllIndices()
public PartitionReadTxn beginReadTransaction()
Partition
public PartitionWriteTxn beginWriteTransaction()
Partition
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.