public abstract class Indexer extends Object
| Constructor and Description |
|---|
Indexer() |
| Modifier and Type | Method and Description |
|---|---|
Comparator<org.forgerock.opendj.ldap.ByteSequence> |
getBSComparator()
Get the comparator that must be used to compare index keys generated by
this class.
|
Comparator<byte[]> |
getComparator()
Get the comparator that must be used to compare index keys generated by
this class.
|
abstract void |
indexEntry(Entry entry,
Set<org.forgerock.opendj.ldap.ByteString> keys)
Generate the set of index keys for an entry.
|
abstract 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.
|
abstract String |
toString()
Get a string representation of this object.
|
public Indexer()
public final Comparator<byte[]> getComparator()
public final Comparator<org.forgerock.opendj.ldap.ByteSequence> getBSComparator()
public abstract void indexEntry(Entry entry, Set<org.forgerock.opendj.ldap.ByteString> keys)
entry - The entry.keys - The set into which the generated keys will be inserted.public abstract void modifyEntry(Entry oldEntry, Entry newEntry, List<Modification> mods, Map<org.forgerock.opendj.ldap.ByteString,Boolean> modifiedKeys)
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.