Package | Description |
---|---|
org.modeshape.jcr | |
org.modeshape.jcr.api.index | |
org.modeshape.jcr.index.local | |
org.modeshape.jcr.query.engine |
This package contains several fully-functional query engine implementations.
|
org.modeshape.jcr.spi.index |
This package contains the interfaces for managing index providers and index definitions.
|
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 | Method and Description |
---|---|
IndexDefinition |
SystemContent.readIndexDefinition(CachedNode indexDefn,
Name providerName) |
Modifier and Type | Method and Description |
---|---|
abstract Map<String,IndexDefinition> |
RepositoryIndexes.getIndexDefinitions()
Get a map of the registered index definitions keyed by their names.
|
abstract Iterable<IndexDefinition> |
RepositoryIndexes.indexesFor(String nodeTypeName,
String providerName)
Get all of the index definitions that deal with properties on the node type with the given name.
|
List<IndexDefinition> |
SystemContent.readAllIndexDefinitions(Set<String> providerNames)
Read from system storage the index definitions.
|
Modifier and Type | Method and Description |
---|---|
void |
SystemContent.remove(IndexDefinition indexDefn) |
void |
SystemContent.store(IndexDefinition indexDefn,
boolean updateExisting) |
Modifier and Type | Interface and Description |
---|---|
interface |
IndexDefinitionTemplate
A mutable form of the
IndexDefinition . |
Modifier and Type | Method and Description |
---|---|
Map<String,IndexDefinition> |
IndexManager.getIndexDefinitions()
Get a map of the registered index definitions keyed by their names.
|
Modifier and Type | Method and Description |
---|---|
void |
IndexManager.registerIndex(IndexDefinition indexDefinition,
boolean allowUpdate)
Register a new definition for an index.
|
void |
IndexManager.registerIndexes(IndexDefinition[] indexDefinitions,
boolean allowUpdate)
Register new definitions for several indexes.
|
Modifier and Type | Method and Description |
---|---|
static IndexSpec |
IndexSpec.create(ExecutionContext context,
IndexDefinition defn) |
protected ManagedIndex |
LocalIndexProvider.createIndex(IndexDefinition defn,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
IndexFeedback feedback) |
protected void |
LocalIndexProvider.removeIndex(IndexDefinition oldDefn,
ManagedIndex existingIndex,
String workspaceName) |
protected ManagedIndex |
LocalIndexProvider.updateIndex(IndexDefinition oldDefn,
IndexDefinition updatedDefn,
ManagedIndex existingIndex,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
IndexFeedback feedback) |
Constructor and Description |
---|
IndexSpec.SingleColumnSpec(ExecutionContext context,
IndexDefinition defn) |
IndexSpec(ExecutionContext context,
IndexDefinition defn) |
Modifier and Type | Method and Description |
---|---|
void |
IndexQueryEngine.ProviderIndexPlanner.applyIndexes(QueryContext context,
SelectorName selector,
List<Constraint> andedConstraints,
Iterable<IndexDefinition> indexesOnSelector,
IndexCollector indexes) |
Modifier and Type | Method and Description |
---|---|
Collection<IndexDefinition> |
WorkspaceChanges.getIndexDefinitions()
Get the
IndexDefinition s. |
Map<String,IndexDefinition> |
IndexDefinitionChanges.getUpdatedIndexDefinitions()
Get the
IndexDefinition s that were added or updated. |
Modifier and Type | Method and Description |
---|---|
static ChangeSetListener |
IndexChangeSetListeners.create(ExecutionContext context,
NodeTypes.Supplier nodeTypesSupplier,
IndexDefinition indexDefinition,
IndexChangeSetListeners.MultiColumnIndexOperations operations)
Create a new ChangeSetListener implementation that can update multi-column indexes.
|
static ChangeSetListener |
IndexChangeSetListeners.create(ExecutionContext context,
NodeTypes.Supplier nodeTypesSupplier,
IndexDefinition indexDefinition,
IndexChangeSetListeners.SingleColumnIndexOperations operations)
Create a new ChangeSetListener implementation that can update single-column indexes.
|
Modifier and Type | Method and Description |
---|---|
protected abstract ManagedIndex |
IndexProvider.createIndex(IndexDefinition defn,
String workspaceName,
NodeTypes.Supplier nodeTypesSupplier,
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 void |
IndexProvider.removeIndex(IndexDefinition oldDefn,
ManagedIndex existingIndex,
String workspaceName)
Method called when this provider needs to remove an existing 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,
IndexFeedback feedback)
Method called when this provider needs to update an existing index given the unique pair of workspace name and index
definition.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
IndexPlanner.applyIndexes(QueryContext context,
SelectorName selector,
List<Constraint> andedConstraints,
Iterable<IndexDefinition> indexesOnSelector,
IndexCollector indexes)
Examine the supplied constraints applied to the given selector in a query, and record in the supplied
IndexCollector any and all indexes in this provider that can be used in this query. |
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.