Package | Description |
---|---|
org.modeshape.jcr.cache.change | |
org.modeshape.jcr.index.local | |
org.modeshape.jcr.spi.index.provider |
This package contains the Service Provider Interface (SPI) for custom index providers, which are components that encapsulate
how ModeShape updates and uses a set of particular indexes.
|
Modifier and Type | Field and Description |
---|---|
protected ChangeSetAdapter.NodeTypePredicate |
ChangeSetAdapter.predicate |
Constructor and Description |
---|
ChangeSetAdapter(ExecutionContext context,
ChangeSetAdapter.NodeTypePredicate predicate) |
Modifier and Type | Field and Description |
---|---|
protected ChangeSetAdapter.NodeTypePredicate |
ManagedLocalIndexBuilder.matcher |
Modifier and Type | Method and Description |
---|---|
static <T> ManagedLocalIndexBuilder<T> |
ManagedLocalIndexBuilder.create(ExecutionContext context,
IndexDefinition defn,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher)
Create a builder for the supplied index definition.
|
protected ManagedIndex |
LocalIndexProvider.createIndex(IndexDefinition defn,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher,
IndexFeedback feedback) |
static IndexChangeAdapter |
IndexChangeAdapters.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 |
IndexChangeAdapters.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 |
IndexChangeAdapters.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 |
IndexChangeAdapters.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 |
IndexChangeAdapters.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 |
IndexChangeAdapters.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 |
IndexChangeAdapters.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 |
IndexChangeAdapters.forNodeTypes(ExecutionContext context,
ChangeSetAdapter.NodeTypePredicate matcher,
String workspaceName,
LocalIndex<String> index)
Create an
IndexChangeAdapter implementation that handles node type information. |
static IndexChangeAdapter |
IndexChangeAdapters.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 |
IndexChangeAdapters.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 |
IndexChangeAdapters.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 |
IndexChangeAdapters.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 ManagedIndex |
LocalIndexProvider.updateIndex(IndexDefinition oldDefn,
IndexDefinition updatedDefn,
ManagedIndex existingIndex,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher,
IndexFeedback feedback) |
Modifier and Type | Class and Description |
---|---|
class |
NodeTypeMatcher |
Modifier and Type | Method and Description |
---|---|
protected abstract ManagedIndex |
IndexProvider.createIndex(IndexDefinition defn,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher,
IndexFeedback feedback)
Method called when this provider needs to create a new index given the unique pair of workspace name and index definition.
|
protected abstract ManagedIndex |
IndexProvider.updateIndex(IndexDefinition oldDefn,
IndexDefinition updatedDefn,
ManagedIndex existingIndex,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher,
IndexFeedback feedback)
Method called when this provider needs to update an existing index given the unique pair of workspace name and index
definition.
|
abstract void |
NodeTypeMatcher.use(ChangeSetAdapter.NodeTypePredicate other) |
Constructor and Description |
---|
IndexChangeAdapter(ExecutionContext context,
String workspaceName,
ChangeSetAdapter.NodeTypePredicate predicate) |
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.