T
- the type of value that is indexedpublic abstract class LocalIndexBuilder<T> extends ManagedIndexBuilder
local indexes
.Modifier and Type | Class and Description |
---|---|
protected static class |
LocalIndexBuilder.SingleColumnIndexBuilder<T> |
Modifier and Type | Field and Description |
---|---|
protected MapDB.Serializers |
serializers |
context, defn, matcher, nodeTypesSupplier, workspaceName
Modifier | Constructor and Description |
---|---|
protected |
LocalIndexBuilder(ExecutionContext context,
IndexDefinition defn,
NodeTypes.Supplier nodeTypesSupplier,
String workspaceName,
ChangeSetAdapter.NodeTypePredicate matcher) |
Modifier and Type | Method and Description |
---|---|
static <T> LocalIndexBuilder<T> |
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 abstract Comparator<T> |
getComparator() |
protected abstract org.mapdb.Serializer<T> |
getSerializer() |
protected String |
indexName() |
protected static void |
validate(IndexDefinition defn,
Problems problems)
Validate whether the index definition is acceptable for this provider.
|
build, buildEnumeratedIndex, buildMultiValueIndex, buildNodeTypeIndex, buildTextIndex, buildUniqueValueIndex, determineActualPropertyType, isMixinTypesIndex, isNodeDepthIndex, isNodeLocalNameIndex, isNodeNameIndex, isNodePathIndex, isPrimaryTypeIndex, isType, matches, matches, name
protected final MapDB.Serializers serializers
protected LocalIndexBuilder(ExecutionContext context, IndexDefinition defn, NodeTypes.Supplier nodeTypesSupplier, String workspaceName, ChangeSetAdapter.NodeTypePredicate matcher)
public static <T> LocalIndexBuilder<T> create(ExecutionContext context, IndexDefinition defn, NodeTypes.Supplier nodeTypesSupplier, String workspaceName, ChangeSetAdapter.NodeTypePredicate matcher, org.mapdb.DB db)
context
- the execution context in which the index should operate; may not be nulldefn
- the index definition; may not be nullnodeTypesSupplier
- the supplier of the NodeTypes
instance; may not be nullworkspaceName
- the name of the workspace for which to build the index; may not be nullmatcher
- the node type matcher used to determine which nodes should be included in the index; may not be nulldb
- the MapDB DB instance; may not be nullprotected static void validate(IndexDefinition defn, Problems problems)
defn
- the definition to validate; may not be null
problems
- the component to record any problems, errors, or warnings; may not be nullprotected final String indexName()
protected abstract org.mapdb.Serializer<T> getSerializer()
protected abstract Comparator<T> getComparator()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.