@Immutable public final class NoOpQueryIndexWriter extends Object implements IndexWriter
Modifier and Type | Field and Description |
---|---|
static NoOpQueryIndexWriter |
INSTANCE |
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.
|
public static final NoOpQueryIndexWriter INSTANCE
public boolean canBeSkipped()
IndexWriter
canBeSkipped
in interface IndexWriter
public void clearAllIndexes()
IndexWriter
clearAllIndexes
in interface IndexWriter
public boolean add(String workspace, NodeKey key, Path path, Name primaryType, Set<Name> mixinTypes, CachedNode.Properties properties)
IndexWriter
add
in interface IndexWriter
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
otherwisepublic boolean remove(String workspace, NodeKey key)
IndexWriter
remove
in interface IndexWriter
workspace
- the workspace to which the node belongs; may not be nullkey
- a NodeKey
instance, never null
true
if the operation was successful and data was written to at least one index, false
otherwisepublic void commit(String workspace)
IndexWriter
commit
in interface IndexWriter
workspace
- the workspace to which the node belongs; may not be nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.