public interface IndexWriter
IndexProvider.getIndexWriter()| Modifier and Type | Method and Description |
|---|---|
boolean |
add(String workspace,
NodeKey key,
Path path,
Name primaryType,
Set<Name> mixinTypes,
CachedNode.Properties properties)
Add to the index the information about a node.
|
boolean |
canBeSkipped()
Flag that defines whether this index may be skipped.
|
void |
clearAllIndexes()
Clear all indexes of content.
|
void |
commit(String workspace)
Commits changes made to the indexes for a particular workspace.
|
boolean |
remove(String workspace,
NodeKey key)
Removes information from the indexes about a node.
|
boolean canBeSkipped()
void clearAllIndexes()
boolean add(String workspace, NodeKey key, Path path, Name primaryType, Set<Name> mixinTypes, CachedNode.Properties properties)
workspace - the workspace in which the node information should be available; may not be nullkey - the unique key for the node; may not be nullpath - the path of the node; may not be nullprimaryType - the primary type of the node; may not be nullmixinTypes - the mixin types for the node; may not be null but may be emptyproperties - the properties of the node; may not be null but may be emptytrue if the operation was successful and data was written to at least one index, false otherwiseboolean remove(String workspace, NodeKey key)
workspace - the workspace to which the node belongs; may not be nullkey - a NodeKey instance, never nulltrue if the operation was successful and data was written to at least one index, false otherwisevoid commit(String workspace)
workspace - the workspace to which the node belongs; may not be nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.