|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.backends.jeb.Indexer
org.opends.server.backends.jeb.EqualityIndexer
public class EqualityIndexer
An implementation of an Indexer for attribute equality.
Constructor Summary | |
---|---|
EqualityIndexer(AttributeType attributeType)
Create a new attribute equality indexer for the given attribute type. |
Method Summary | |
---|---|
java.util.Comparator<byte[]> |
getComparator()
Get the comparator that must be used to compare index keys generated by this class. |
void |
indexEntry(Entry entry,
java.util.Set<byte[]> keys)
Generate the set of index keys for an entry. |
void |
modifyEntry(Entry oldEntry,
Entry newEntry,
java.util.List<Modification> mods,
java.util.Map<byte[],java.lang.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. |
void |
replaceEntry(Entry oldEntry,
Entry newEntry,
java.util.Map<byte[],java.lang.Boolean> modifiedKeys)
Generate the set of index keys to be added and the set of index keys to be deleted for an entry that has been replaced. |
java.lang.String |
toString()
Get a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EqualityIndexer(AttributeType attributeType)
attributeType
- The attribute type for which an indexer is
required.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Comparator<byte[]> getComparator()
getComparator
in class Indexer
public void indexEntry(Entry entry, java.util.Set<byte[]> keys)
indexEntry
in class Indexer
entry
- The entry.keys
- The set into which the generated keys will be inserted.public void replaceEntry(Entry oldEntry, Entry newEntry, java.util.Map<byte[],java.lang.Boolean> modifiedKeys)
replaceEntry
in class Indexer
oldEntry
- The original entry contents.newEntry
- The new entry contents.modifiedKeys
- The map into which the modified keys will be inserted.public void modifyEntry(Entry oldEntry, Entry newEntry, java.util.List<Modification> mods, java.util.Map<byte[],java.lang.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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |