|
|||||||||
| 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.ApproximateIndexer
public class ApproximateIndexer
An implementation of an Indexer for attribute approximate matching.
| Constructor Summary | |
|---|---|
ApproximateIndexer(AttributeType attributeType)
Create a new attribute approximate indexer for the given index configuration. |
|
| 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 ApproximateIndexer(AttributeType attributeType)
attributeType - The attribute type for which an indexer is
required.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Comparator<byte[]> getComparator()
getComparator in class Indexer
public void indexEntry(Entry entry,
java.util.Set<byte[]> keys)
indexEntry in class Indexerentry - 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 IndexeroldEntry - 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 IndexeroldEntry - 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 | ||||||||