| Package | Description |
|---|---|
| org.modeshape.jcr.index.elasticsearch | |
| org.modeshape.jcr.index.local | |
| org.modeshape.jcr.index.lucene | |
| 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.
|
| Constructor and Description |
|---|
EsManagedIndexBuilder(EsClient client,
ExecutionContext context,
IndexDefinition defn,
NodeTypes.Supplier nodeTypesSupplier,
String workspaceName,
ChangeSetAdapter.NodeTypePredicate matcher) |
| Modifier and Type | Method and Description |
|---|---|
protected ProvidedIndex<?> |
LocalIndexBuilder.SingleColumnIndexBuilder.buildEnumeratedIndex(ExecutionContext context,
IndexDefinition defn,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher) |
protected ProvidedIndex<?> |
LocalIndexBuilder.SingleColumnIndexBuilder.buildMultiValueIndex(ExecutionContext context,
IndexDefinition defn,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher) |
protected ProvidedIndex<?> |
LocalIndexBuilder.SingleColumnIndexBuilder.buildNodeTypeIndex(ExecutionContext context,
IndexDefinition defn,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher) |
protected ProvidedIndex<?> |
LocalIndexBuilder.SingleColumnIndexBuilder.buildTextIndex(ExecutionContext context,
IndexDefinition defn,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher) |
protected ProvidedIndex<?> |
LocalIndexBuilder.SingleColumnIndexBuilder.buildUniqueValueIndex(ExecutionContext context,
IndexDefinition defn,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher) |
static <T> LocalIndexBuilder<T> |
LocalIndexBuilder.create(ExecutionContext context,
IndexDefinition defn,
NodeTypes.Supplier nodeTypesSupplier,
String workspaceName,
ChangeSetAdapter.NodeTypePredicate matcher,
org.mapdb.DB db)
Create a builder for the supplied index definition.
|
protected ManagedIndexBuilder |
LocalIndexProvider.getIndexBuilder(IndexDefinition defn,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher) |
void |
LocalIndexProvider.validateProposedIndex(ExecutionContext context,
IndexDefinition defn,
NodeTypes.Supplier nodeTypeSupplier,
Problems problems) |
| Constructor and Description |
|---|
LocalIndexBuilder(ExecutionContext context,
IndexDefinition defn,
NodeTypes.Supplier nodeTypesSupplier,
String workspaceName,
ChangeSetAdapter.NodeTypePredicate matcher) |
SingleColumnIndexBuilder(ExecutionContext context,
IndexDefinition defn,
NodeTypes.Supplier nodeTypesSupplier,
String workspaceName,
ChangeSetAdapter.NodeTypePredicate matcher,
PropertyType actualPropertyType,
org.mapdb.DB db) |
| Constructor and Description |
|---|
LuceneManagedIndexBuilder(ExecutionContext context,
IndexDefinition defn,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher,
LuceneConfig luceneConfig) |
| Modifier and Type | Field and Description |
|---|---|
protected NodeTypes.Supplier |
ManagedIndexBuilder.nodeTypesSupplier |
| Modifier and Type | Method and Description |
|---|---|
protected abstract ProvidedIndex<?> |
ManagedIndexBuilder.buildEnumeratedIndex(ExecutionContext context,
IndexDefinition defn,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher) |
protected abstract ProvidedIndex<?> |
ManagedIndexBuilder.buildMultiValueIndex(ExecutionContext context,
IndexDefinition defn,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher) |
protected abstract ProvidedIndex<?> |
ManagedIndexBuilder.buildNodeTypeIndex(ExecutionContext context,
IndexDefinition defn,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher) |
protected abstract ProvidedIndex<?> |
ManagedIndexBuilder.buildTextIndex(ExecutionContext context,
IndexDefinition defn,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher) |
protected abstract ProvidedIndex<?> |
ManagedIndexBuilder.buildUniqueValueIndex(ExecutionContext context,
IndexDefinition defn,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher) |
protected 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 ManagedIndexBuilder |
IndexProvider.getIndexBuilder(IndexDefinition defn,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher)
Offers subclasses the possibility of providing a
ManagedIndexBuilder instance which significantly simplifies the
task of creating or updating ManagedIndex instances for providers. |
void |
IndexProvider.notify(IndexDefinitionChanges changes,
ChangeBus observable,
NodeTypes.Supplier nodeTypesSupplier,
Set<String> workspaceNames,
IndexFeedback feedback)
Signal that some of the definitions of indexes owned by this provider were changed.
|
void |
IndexProvider.notify(WorkspaceChanges changes,
ChangeBus observable,
NodeTypes.Supplier nodeTypesSupplier,
Set<String> workspaceNames,
IndexFeedback feedback)
Signal that some workspaces were added or removed.
|
protected 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.
|
void |
IndexProvider.validateProposedIndex(ExecutionContext context,
IndexDefinition defn,
NodeTypes.Supplier nodeTypesSupplier,
Problems problems)
Validate the proposed index definition, and use the supplied problems to report any issues that will prevent this provider
from creating and using an index with the given definition.
|
| Constructor and Description |
|---|
ManagedIndexBuilder(ExecutionContext context,
IndexDefinition defn,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher) |
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.