public class CompositeIndexWriter extends Object implements IndexWriter
| Modifier | Constructor and Description |
|---|---|
protected |
CompositeIndexWriter(List<IndexWriter> writers) |
| 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.
|
static IndexWriter |
create(Iterable<IndexProvider> providers) |
boolean |
remove(String workspace,
NodeKey key)
Removes information from the indexes about a node.
|
protected CompositeIndexWriter(List<IndexWriter> writers)
public static IndexWriter create(Iterable<IndexProvider> providers)
public void clearAllIndexes()
IndexWriterclearAllIndexes in interface IndexWriterpublic boolean canBeSkipped()
IndexWritercanBeSkipped in interface IndexWriterpublic boolean add(String workspace, NodeKey key, Path path, Name primaryType, Set<Name> mixinTypes, CachedNode.Properties properties)
IndexWriteradd in interface IndexWriterworkspace - 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 otherwisepublic boolean remove(String workspace, NodeKey key)
IndexWriterremove in interface IndexWriterworkspace - 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 otherwisepublic void commit(String workspace)
IndexWritercommit in interface IndexWriterworkspace - the workspace to which the node belongs; may not be nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.