public class IndexChangeSetListeners extends Object
ChangeSetListener implementations for updating indexes. The listener implementations do
manage much of the complexity of processing ChangeSets and determining which changes are relevant for an index. All of
the logic that defines how the indexes are updated is delegated the the IndexChangeSetListeners.SingleColumnIndexOperations and
IndexChangeSetListeners.MultiColumnIndexOperations implementations provided by the caller.| Modifier and Type | Class and Description |
|---|---|
protected static class |
IndexChangeSetListeners.IndexChangeSetListener |
static interface |
IndexChangeSetListeners.MultiColumnIndexOperations
A predicate function that determines whether the changes in a specified workspace should be processed.
|
protected static class |
IndexChangeSetListeners.MultiPropertyIndexChangeSetListener |
protected static interface |
IndexChangeSetListeners.NodeTypePredicate |
static interface |
IndexChangeSetListeners.SingleColumnIndexOperations
A predicate function that determines whether the changes in a specified workspace should be processed.
|
protected static class |
IndexChangeSetListeners.SinglePropertyIndexChangeSetListener |
| Modifier and Type | Method and Description |
|---|---|
static ChangeSetListener |
create(ExecutionContext context,
NodeTypes.Supplier nodeTypesSupplier,
IndexDefinition indexDefinition,
IndexChangeSetListeners.MultiColumnIndexOperations operations)
Create a new ChangeSetListener implementation that can update multi-column indexes.
|
static ChangeSetListener |
create(ExecutionContext context,
NodeTypes.Supplier nodeTypesSupplier,
IndexDefinition indexDefinition,
IndexChangeSetListeners.SingleColumnIndexOperations operations)
Create a new ChangeSetListener implementation that can update single-column indexes.
|
public static ChangeSetListener create(ExecutionContext context, NodeTypes.Supplier nodeTypesSupplier, IndexDefinition indexDefinition, IndexChangeSetListeners.SingleColumnIndexOperations operations)
context - the execution context that should be used by the listener; may not be nullnodeTypesSupplier - the supplier for the immutable NodeTypes snapshot; may not be nullindexDefinition - the definition of the single column index; may not be null and must have a
single columnoperations - the operations that will be called to update the index; may not be nullpublic static ChangeSetListener create(ExecutionContext context, NodeTypes.Supplier nodeTypesSupplier, IndexDefinition indexDefinition, IndexChangeSetListeners.MultiColumnIndexOperations operations)
context - the execution context that should be used by the listener; may not be nullnodeTypesSupplier - the supplier for the immutable NodeTypes snapshot; may not be nullindexDefinition - the definition of the single column index; may not be null and must have a
single columnoperations - the operations that will be called to update the index; may not be nullCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.