public final class AttributeIndexer extends Indexer
Constructor and Description |
---|
AttributeIndexer(AttributeType attributeType,
org.forgerock.opendj.ldap.spi.Indexer extensibleIndexer)
Creates a new extensible indexer for JE backend.
|
Modifier and Type | Method and Description |
---|---|
void |
indexEntry(Entry entry,
Set<org.forgerock.opendj.ldap.ByteString> keys)
Generate the set of index keys for an entry.
|
void |
modifyEntry(Entry oldEntry,
Entry newEntry,
List<Modification> mods,
Map<org.forgerock.opendj.ldap.ByteString,Boolean> modifiedKeys)
Generate the set of index keys to be added and the set of index keys
to be deleted for an entry that was modified.
|
String |
toString()
Get a string representation of this object.
|
getBSComparator, getComparator
public AttributeIndexer(AttributeType attributeType, org.forgerock.opendj.ldap.spi.Indexer extensibleIndexer)
attributeType
- The attribute type for which an indexer is
required.extensibleIndexer
- The extensible indexer to be used.public String toString()
public void indexEntry(Entry entry, Set<org.forgerock.opendj.ldap.ByteString> keys)
indexEntry
in class Indexer
entry
- The entry.keys
- The set into which the generated keys will be inserted.public void modifyEntry(Entry oldEntry, Entry newEntry, List<Modification> mods, Map<org.forgerock.opendj.ldap.ByteString,Boolean> modifiedKeys)
modifyEntry
in class Indexer
oldEntry
- The original entry contents.newEntry
- The new entry contents.mods
- The set of modifications that were applied to the entry.modifiedKeys
- The map into which the modified keys will be inserted.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.