T - the type of the values handled by this index or Object in the case of multi-column indexes.public interface ProvidedIndex<T> extends Filter, Costable, Reindexable, Lifecycle
IndexDefinition.IndexKind
to the repository.Filter.Results| Modifier and Type | Method and Description |
|---|---|
void |
add(String nodeKey,
String propertyName,
T value)
Adds a single value to this index for the given node.
|
void |
add(String nodeKey,
String propertyName,
T[] values)
Adds multiple values to the index for the given node.
|
void |
commit()
Commits any potential changes made by the add/remove/update operations to this index.
|
String |
getName()
Get the name of the index.
|
void |
remove(String nodeKey)
Removes the given node from the index.
|
void |
remove(String nodeKey,
String propertyName,
T value)
Removes a value for the given node from the index.
|
void |
remove(String nodeKey,
String propertyName,
T[] values)
Removes multiple values from the index for the given node.
|
estimateCardinality, estimateTotalCountclearAllData, requiresReindexingvoid add(String nodeKey, String propertyName, T value)
nodeKey - a NodeKey instance, never nullpropertyName - the name for which the value is removed, never null but certain providers
may ignore the value. Most of the times this is the real JCR property name, but for some index types (e.g. node types
index) this may be something else (e.g. the name of the index)value - an Object instance, never nullvoid add(String nodeKey, String propertyName, T[] values)
nodeKey - a NodeKey instance, never nullpropertyName - the name for which the value is removed, never null but certain providers
may ignore the value. Most of the times this is the real JCR property name, but for some index types (e.g. node types
index) this may be something else (e.g. the name of the index)values - an array of values, never null or emptyvoid remove(String nodeKey)
nodeKey - a NodeKey instance, never nullvoid remove(String nodeKey, String propertyName, T value)
nodeKey - a NodeKey instance, never nullpropertyName - the name for which the value is removed, never null but certain providers
may ignore the value. Most of the times this is the real JCR property name, but for some index types (e.g. node types
index) this may be something else (e.g. the name of the index)value - the value to remove from the index for this node, never nullvoid remove(String nodeKey, String propertyName, T[] values)
nodeKey - a NodeKey instance, never nullpropertyName - the name for which the value is removed, never null but certain providers
may ignore the value. Most of the times this is the real JCR property name, but for some index types (e.g. node types
index) this may be something else (e.g. the name of the index)values - the values to remove, never null or emptyvoid commit()
String getName()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.