@Immutable public final class NoOpQueryIndexWriter extends Object implements QueryIndexWriter
QueryIndexWriter.IndexingContext
Modifier and Type | Field and Description |
---|---|
static NoOpQueryIndexWriter |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
addBinaryToIndex(Binary binary,
QueryIndexWriter.IndexingContext txnCtx) |
void |
addToIndex(String workspace,
NodeKey key,
Path path,
Name primaryType,
Set<Name> mixinTypes,
Iterator<Property> propertiesIterator,
NodeTypeSchemata schemata,
QueryIndexWriter.IndexingContext txnCtx)
Add to the index the information about a node.
|
boolean |
canBeSkipped()
Flag that defines whether this index may be skipped.
|
QueryIndexWriter.IndexingContext |
createIndexingContext(Transaction txn)
Create a new indexing context in which a set of indexing operations will be performed.
|
boolean |
initializedIndexes()
Retrieve whether the indexes were initialized and empty upon startup.
|
void |
removeBinariesFromIndex(Iterable<String> sha1s,
QueryIndexWriter.IndexingContext txnCtx) |
void |
removeFromIndex(String workspace,
Iterable<NodeKey> keys,
QueryIndexWriter.IndexingContext txnCtx) |
void |
updateIndex(String workspace,
NodeKey key,
Path path,
Name primaryType,
Set<Name> mixinTypes,
Iterator<Property> properties,
NodeTypeSchemata schemata,
QueryIndexWriter.IndexingContext txnCtx)
Update the index to reflect the new state of the node.
|
public static final NoOpQueryIndexWriter INSTANCE
public boolean canBeSkipped()
QueryIndexWriter
canBeSkipped
in interface QueryIndexWriter
public QueryIndexWriter.IndexingContext createIndexingContext(Transaction txn)
QueryIndexWriter
createIndexingContext
in interface QueryIndexWriter
txn
- the transaction that this context is to participate inpublic void addToIndex(String workspace, NodeKey key, Path path, Name primaryType, Set<Name> mixinTypes, Iterator<Property> propertiesIterator, NodeTypeSchemata schemata, QueryIndexWriter.IndexingContext txnCtx)
QueryIndexWriter
addToIndex
in interface QueryIndexWriter
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 emptypropertiesIterator
- the iterator over the properties of a node; may not be null but may be emptyschemata
- the node type schemata that should be used to determine how the node is to be indexed; may not be nulltxnCtx
- the transaction context in which the index updates should be made; may not be nullpublic void updateIndex(String workspace, NodeKey key, Path path, Name primaryType, Set<Name> mixinTypes, Iterator<Property> properties, NodeTypeSchemata schemata, QueryIndexWriter.IndexingContext txnCtx)
QueryIndexWriter
updateIndex
in interface QueryIndexWriter
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 emptyschemata
- the node type schemata that should be used to determine how the node is to be indexed; may not be nulltxnCtx
- the transaction context in which the index updates should be made; may not be nullpublic boolean initializedIndexes()
QueryIndexWriter
initializedIndexes
in interface QueryIndexWriter
public void removeFromIndex(String workspace, Iterable<NodeKey> keys, QueryIndexWriter.IndexingContext txnCtx)
removeFromIndex
in interface QueryIndexWriter
public void addBinaryToIndex(Binary binary, QueryIndexWriter.IndexingContext txnCtx)
addBinaryToIndex
in interface QueryIndexWriter
public void removeBinariesFromIndex(Iterable<String> sha1s, QueryIndexWriter.IndexingContext txnCtx)
removeBinariesFromIndex
in interface QueryIndexWriter
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.