T
- the type of value that is indexedpublic abstract class ManagedLocalIndexBuilder<T> extends Object
local indexes
.Modifier and Type | Class and Description |
---|---|
protected static class |
ManagedLocalIndexBuilder.SingleColumnIndexBuilder<T> |
Modifier and Type | Field and Description |
---|---|
protected ExecutionContext |
context |
protected IndexDefinition |
defn |
protected ChangeSetAdapter.NodeTypePredicate |
matcher |
protected NodeTypes.Supplier |
nodeTypesSupplier |
protected MapDB.Serializers |
serializers |
Modifier | Constructor and Description |
---|---|
protected |
ManagedLocalIndexBuilder(ExecutionContext context,
IndexDefinition defn,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher) |
Modifier and Type | Method and Description |
---|---|
abstract ManagedLocalIndex |
build(String workspaceName,
org.mapdb.DB localDatabase)
Build the managed index.
|
static <T> ManagedLocalIndexBuilder<T> |
create(ExecutionContext context,
IndexDefinition defn,
NodeTypes.Supplier nodeTypesSupplier,
ChangeSetAdapter.NodeTypePredicate matcher)
Create a builder for the supplied index definition.
|
protected static PropertyType |
determineActualPropertyType(IndexColumnDefinition columnDefn) |
protected IndexColumnDefinition |
firstColumn() |
protected abstract org.mapdb.BTreeKeySerializer<T> |
getBTreeKeySerializer() |
protected abstract Comparator<T> |
getComparator() |
protected abstract IndexValues.Converter<T> |
getConverter() |
protected NodeTypes.Supplier |
getNodeTypesSupplier() |
protected abstract org.mapdb.Serializer<T> |
getSerializer() |
protected abstract Class<T> |
getValueClass() |
protected boolean |
hasSingleColumn() |
protected String |
indexName() |
protected boolean |
isMixinTypesIndex() |
protected boolean |
isNodeDepthIndex() |
protected boolean |
isNodeLocalNameIndex() |
protected boolean |
isNodeNameIndex() |
protected boolean |
isNodePathIndex() |
protected boolean |
isNodeTypesIndex() |
protected boolean |
isPrimaryTypeIndex() |
protected boolean |
isType(PropertyType propType,
PropertyType expected) |
protected boolean |
isType(PropertyType propType,
PropertyType expected1,
PropertyType expected2) |
protected boolean |
matches(IndexColumnDefinition defn,
Name name) |
protected boolean |
matches(String actual,
Name name) |
protected Name |
name(String name) |
abstract void |
validate(Problems problems)
Validate whether the index definition is acceptable for this provider.
|
protected final ExecutionContext context
protected final MapDB.Serializers serializers
protected final NodeTypes.Supplier nodeTypesSupplier
protected final IndexDefinition defn
protected final ChangeSetAdapter.NodeTypePredicate matcher
protected ManagedLocalIndexBuilder(ExecutionContext context, IndexDefinition defn, NodeTypes.Supplier nodeTypesSupplier, ChangeSetAdapter.NodeTypePredicate matcher)
public static <T> ManagedLocalIndexBuilder<T> create(ExecutionContext context, IndexDefinition defn, NodeTypes.Supplier nodeTypesSupplier, ChangeSetAdapter.NodeTypePredicate matcher)
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 nullmatcher
- the node type matcher used to determine which nodes should be included in the index; may not be nullprotected static PropertyType determineActualPropertyType(IndexColumnDefinition columnDefn)
public abstract ManagedLocalIndex build(String workspaceName, org.mapdb.DB localDatabase) throws LocalIndexException
workspaceName
- the name of the workspace; may not be nulllocalDatabase
- the local database; may not be nullLocalIndexException
- if there is a problem creating the indexpublic abstract void validate(Problems problems)
problems
- the component to record any problems, errors, or warnings; may not be nullprotected final NodeTypes.Supplier getNodeTypesSupplier()
protected final String indexName()
protected abstract org.mapdb.Serializer<T> getSerializer()
protected abstract org.mapdb.BTreeKeySerializer<T> getBTreeKeySerializer()
protected abstract Comparator<T> getComparator()
protected abstract IndexValues.Converter<T> getConverter()
protected boolean isNodeTypesIndex()
protected boolean isPrimaryTypeIndex()
protected boolean isMixinTypesIndex()
protected boolean isNodeNameIndex()
protected boolean isNodeLocalNameIndex()
protected boolean isNodeDepthIndex()
protected boolean isNodePathIndex()
protected boolean hasSingleColumn()
protected IndexColumnDefinition firstColumn()
protected final boolean matches(IndexColumnDefinition defn, Name name)
protected final boolean isType(PropertyType propType, PropertyType expected)
protected final boolean isType(PropertyType propType, PropertyType expected1, PropertyType expected2)
Copyright © 2008-2015 JBoss, a division of Red Hat. All Rights Reserved.