public class IndexChangeAdapters extends Object
IndexChangeAdapter
instances.Modifier and Type | Method and Description |
---|---|
static IndexChangeAdapter |
forMixinTypes(ExecutionContext context,
ChangeSetAdapter.NodeTypePredicate matcher,
String workspaceName,
org.modeshape.jcr.index.local.LocalDuplicateIndex<Name> index)
Create an
IndexChangeAdapter implementation that handles the "jcr:mixinTypes" property. |
static IndexChangeAdapter |
forMultiValuedEnumeratedProperty(ExecutionContext context,
ChangeSetAdapter.NodeTypePredicate matcher,
String workspaceName,
Name propertyName,
org.modeshape.jcr.index.local.LocalEnumeratedIndex index)
Create an
IndexChangeAdapter implementation that handles a multi-valued enumerated property. |
static <T> IndexChangeAdapter |
forMultiValuedProperty(ExecutionContext context,
ChangeSetAdapter.NodeTypePredicate matcher,
String workspaceName,
Name propertyName,
ValueFactory<T> factory,
org.modeshape.jcr.index.local.LocalDuplicateIndex<T> index)
Create an
IndexChangeAdapter implementation that handles a multi-valued property. |
static IndexChangeAdapter |
forNodeDepth(ExecutionContext context,
ChangeSetAdapter.NodeTypePredicate matcher,
String workspaceName,
org.modeshape.jcr.index.local.LocalDuplicateIndex<Long> index)
Create an
IndexChangeAdapter implementation that handles the "mode:nodeDepth" property. |
static IndexChangeAdapter |
forNodeLocalName(ExecutionContext context,
ChangeSetAdapter.NodeTypePredicate matcher,
String workspaceName,
org.modeshape.jcr.index.local.LocalDuplicateIndex<String> index)
Create an
IndexChangeAdapter implementation that handles the "mode:localName" property. |
static IndexChangeAdapter |
forNodeName(ExecutionContext context,
ChangeSetAdapter.NodeTypePredicate matcher,
String workspaceName,
org.modeshape.jcr.index.local.LocalDuplicateIndex<Name> index)
Create an
IndexChangeAdapter implementation that handles the "jcr:name" property. |
static IndexChangeAdapter |
forNodePath(ExecutionContext context,
ChangeSetAdapter.NodeTypePredicate matcher,
String workspaceName,
org.modeshape.jcr.index.local.LocalDuplicateIndex<Path> index)
Create an
IndexChangeAdapter implementation that handles the "jcr:path" property. |
static IndexChangeAdapter |
forNodeTypes(ExecutionContext context,
ChangeSetAdapter.NodeTypePredicate matcher,
String workspaceName,
LocalIndex<String> index)
Create an
IndexChangeAdapter implementation that handles node type information. |
static IndexChangeAdapter |
forPrimaryType(ExecutionContext context,
ChangeSetAdapter.NodeTypePredicate matcher,
String workspaceName,
org.modeshape.jcr.index.local.LocalDuplicateIndex<Name> index)
Create an
IndexChangeAdapter implementation that handles the "jcr:primaryType" property. |
static IndexChangeAdapter |
forSingleValuedEnumeratedProperty(ExecutionContext context,
ChangeSetAdapter.NodeTypePredicate matcher,
String workspaceName,
Name propertyName,
org.modeshape.jcr.index.local.LocalEnumeratedIndex index)
Create an
IndexChangeAdapter implementation that handles a single-valued enumerated property. |
static <T> IndexChangeAdapter |
forSingleValuedProperty(ExecutionContext context,
ChangeSetAdapter.NodeTypePredicate matcher,
String workspaceName,
Name propertyName,
ValueFactory<T> factory,
org.modeshape.jcr.index.local.LocalDuplicateIndex<T> index)
Create an
IndexChangeAdapter implementation that handles a single-valued property. |
static <T> IndexChangeAdapter |
forUniqueValuedProperty(ExecutionContext context,
ChangeSetAdapter.NodeTypePredicate matcher,
String workspaceName,
Name propertyName,
ValueFactory<T> factory,
org.modeshape.jcr.index.local.LocalUniqueIndex<T> index)
Create an
IndexChangeAdapter implementation that handles a unique-valued property, where every property value is
unique across all nodes. |
protected static String |
nodeKey(NodeKey key) |
public static IndexChangeAdapter forNodeDepth(ExecutionContext context, ChangeSetAdapter.NodeTypePredicate matcher, String workspaceName, org.modeshape.jcr.index.local.LocalDuplicateIndex<Long> index)
IndexChangeAdapter
implementation that handles the "mode:nodeDepth" property.context
- the execution context; may not be nullmatcher
- the node type matcher used to determine which nodes should be included in the index; may not be nullworkspaceName
- the name of the workspace; may not be nullindex
- the local index that should be used; may not be nullIndexChangeAdapter
; never nullpublic static IndexChangeAdapter forNodeName(ExecutionContext context, ChangeSetAdapter.NodeTypePredicate matcher, String workspaceName, org.modeshape.jcr.index.local.LocalDuplicateIndex<Name> index)
IndexChangeAdapter
implementation that handles the "jcr:name" property.context
- the execution context; may not be nullmatcher
- the node type matcher used to determine which nodes should be included in the index; may not be nullworkspaceName
- the name of the workspace; may not be nullindex
- the local index that should be used; may not be nullIndexChangeAdapter
; never nullpublic static IndexChangeAdapter forNodeLocalName(ExecutionContext context, ChangeSetAdapter.NodeTypePredicate matcher, String workspaceName, org.modeshape.jcr.index.local.LocalDuplicateIndex<String> index)
IndexChangeAdapter
implementation that handles the "mode:localName" property.context
- the execution context; may not be nullmatcher
- the node type matcher used to determine which nodes should be included in the index; may not be nullworkspaceName
- the name of the workspace; may not be nullindex
- the local index that should be used; may not be nullIndexChangeAdapter
; never nullpublic static IndexChangeAdapter forNodePath(ExecutionContext context, ChangeSetAdapter.NodeTypePredicate matcher, String workspaceName, org.modeshape.jcr.index.local.LocalDuplicateIndex<Path> index)
IndexChangeAdapter
implementation that handles the "jcr:path" property.context
- the execution context; may not be nullmatcher
- the node type matcher used to determine which nodes should be included in the index; may not be nullworkspaceName
- the name of the workspace; may not be nullindex
- the local index that should be used; may not be nullIndexChangeAdapter
; never nullpublic static IndexChangeAdapter forPrimaryType(ExecutionContext context, ChangeSetAdapter.NodeTypePredicate matcher, String workspaceName, org.modeshape.jcr.index.local.LocalDuplicateIndex<Name> index)
IndexChangeAdapter
implementation that handles the "jcr:primaryType" property.context
- the execution context; may not be nullmatcher
- the node type matcher used to determine which nodes should be included in the index; may not be nullworkspaceName
- the name of the workspace; may not be nullindex
- the local index that should be used; may not be nullIndexChangeAdapter
; never nullpublic static IndexChangeAdapter forMixinTypes(ExecutionContext context, ChangeSetAdapter.NodeTypePredicate matcher, String workspaceName, org.modeshape.jcr.index.local.LocalDuplicateIndex<Name> index)
IndexChangeAdapter
implementation that handles the "jcr:mixinTypes" property.context
- the execution context; may not be nullmatcher
- the node type matcher used to determine which nodes should be included in the index; may not be nullworkspaceName
- the name of the workspace; may not be nullindex
- the local index that should be used; may not be nullIndexChangeAdapter
; never nullpublic static <T> IndexChangeAdapter forSingleValuedProperty(ExecutionContext context, ChangeSetAdapter.NodeTypePredicate matcher, String workspaceName, Name propertyName, ValueFactory<T> factory, org.modeshape.jcr.index.local.LocalDuplicateIndex<T> index)
IndexChangeAdapter
implementation that handles a single-valued property.context
- the execution context; may not be nullmatcher
- the node type matcher used to determine which nodes should be included in the index; may not be nullworkspaceName
- the name of the workspace; may not be nullpropertyName
- the name of the property; may not be nullfactory
- the value factory for the property's value type; may not be nullindex
- the local index that should be used; may not be nullIndexChangeAdapter
; never nullpublic static <T> IndexChangeAdapter forMultiValuedProperty(ExecutionContext context, ChangeSetAdapter.NodeTypePredicate matcher, String workspaceName, Name propertyName, ValueFactory<T> factory, org.modeshape.jcr.index.local.LocalDuplicateIndex<T> index)
IndexChangeAdapter
implementation that handles a multi-valued property.context
- the execution context; may not be nullmatcher
- the node type matcher used to determine which nodes should be included in the index; may not be nullworkspaceName
- the name of the workspace; may not be nullpropertyName
- the name of the property; may not be nullfactory
- the value factory for the property's value type; may not be nullindex
- the local index that should be used; may not be nullIndexChangeAdapter
; never nullpublic static <T> IndexChangeAdapter forUniqueValuedProperty(ExecutionContext context, ChangeSetAdapter.NodeTypePredicate matcher, String workspaceName, Name propertyName, ValueFactory<T> factory, org.modeshape.jcr.index.local.LocalUniqueIndex<T> index)
IndexChangeAdapter
implementation that handles a unique-valued property, where every property value is
unique across all nodes.context
- the execution context; may not be nullmatcher
- the node type matcher used to determine which nodes should be included in the index; may not be nullworkspaceName
- the name of the workspace; may not be nullpropertyName
- the name of the property; may not be nullfactory
- the value factory for the property's value type; may not be nullindex
- the local index that should be used; may not be nullIndexChangeAdapter
; never nullpublic static IndexChangeAdapter forSingleValuedEnumeratedProperty(ExecutionContext context, ChangeSetAdapter.NodeTypePredicate matcher, String workspaceName, Name propertyName, org.modeshape.jcr.index.local.LocalEnumeratedIndex index)
IndexChangeAdapter
implementation that handles a single-valued enumerated property. Because all
enumerated values are distinct, they are treated as strings.context
- the execution context; may not be nullmatcher
- the node type matcher used to determine which nodes should be included in the index; may not be nullworkspaceName
- the name of the workspace; may not be nullpropertyName
- the name of the property; may not be nullindex
- the local index that should be used; may not be nullIndexChangeAdapter
; never nullpublic static IndexChangeAdapter forMultiValuedEnumeratedProperty(ExecutionContext context, ChangeSetAdapter.NodeTypePredicate matcher, String workspaceName, Name propertyName, org.modeshape.jcr.index.local.LocalEnumeratedIndex index)
IndexChangeAdapter
implementation that handles a multi-valued enumerated property. Because all enumerated
values are distinct, they are treated as strings.context
- the execution context; may not be nullmatcher
- the node type matcher used to determine which nodes should be included in the index; may not be nullworkspaceName
- the name of the workspace; may not be nullpropertyName
- the name of the property; may not be nullindex
- the local index that should be used; may not be nullIndexChangeAdapter
; never nullpublic static IndexChangeAdapter forNodeTypes(ExecutionContext context, ChangeSetAdapter.NodeTypePredicate matcher, String workspaceName, LocalIndex<String> index)
IndexChangeAdapter
implementation that handles node type information.context
- the execution context; may not be nullmatcher
- the node type matcher used to determine which nodes should be included in the index; may not be nullworkspaceName
- the name of the workspace; may not be nullindex
- the local index that should be used; may not be nullIndexChangeAdapter
; never nullCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.