T
- the type of value that is added to the indexpublic abstract class LocalIndex<T> extends Object implements ProvidedIndex<T>
Filter.Results
Modifier and Type | Field and Description |
---|---|
protected org.mapdb.DB |
db |
protected IndexUpdater |
indexUpdater |
protected Logger |
logger |
protected String |
name |
protected String |
workspace |
Modifier | Constructor and Description |
---|---|
protected |
LocalIndex(String name,
String workspace,
org.mapdb.DB db) |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
remove(String nodeKey,
String propertyName,
T[] values)
Removes multiple values from the index for the given node.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, getName, remove, remove
estimateCardinality, estimateTotalCount
clearAllData, requiresReindexing
protected final Logger logger
protected final String name
protected final String workspace
protected final IndexUpdater indexUpdater
protected final org.mapdb.DB db
public void add(String nodeKey, String propertyName, T[] values)
ProvidedIndex
add
in interface ProvidedIndex<T>
nodeKey
- a NodeKey
instance, never null
propertyName
- 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 emptypublic void remove(String nodeKey, String propertyName, T[] values)
ProvidedIndex
remove
in interface ProvidedIndex<T>
nodeKey
- a NodeKey
instance, never null
propertyName
- 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 emptypublic void commit()
ProvidedIndex
commit
in interface ProvidedIndex<T>
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.