IndexManager
based indexes will be removed in next major release. Please consider using schema indexes instead.@Deprecated public interface IndexManager
Index
s for Node
s
and Relationship
s. An IndexManager
is paired with a
GraphDatabaseService
via GraphDatabaseService.index()
so that
indexes can be accessed directly from the graph database.Modifier and Type | Method and Description |
---|---|
boolean |
existsForNodes(String indexName)
Deprecated.
|
boolean |
existsForRelationships(String indexName)
Deprecated.
|
Index<Node> |
forNodes(String indexName)
Deprecated.
|
Index<Node> |
forNodes(String indexName,
Map<String,String> customConfiguration)
Deprecated.
|
RelationshipIndex |
forRelationships(String indexName)
Deprecated.
|
RelationshipIndex |
forRelationships(String indexName,
Map<String,String> customConfiguration)
Deprecated.
|
Map<String,String> |
getConfiguration(Index<? extends PropertyContainer> index)
Deprecated.
|
AutoIndexer<Node> |
getNodeAutoIndexer()
Deprecated.
this feature will be removed in a future release, please consider using schema indexes instead
|
RelationshipAutoIndexer |
getRelationshipAutoIndexer()
Deprecated.
this feature will be removed in a future release, please consider using schema indexes instead
|
String[] |
nodeIndexNames()
Deprecated.
|
String[] |
relationshipIndexNames()
Deprecated.
|
String |
removeConfiguration(Index<? extends PropertyContainer> index,
String key)
Deprecated.
|
String |
setConfiguration(Index<? extends PropertyContainer> index,
String key,
String value)
Deprecated.
|
@Deprecated static final String PROVIDER
@Deprecated boolean existsForNodes(String indexName)
indexName
. Indexes are created when needed in calls to
forNodes(String)
and forNodes(String, Map)
.indexName
- the name of the index to check.indexName
.@Deprecated Index<Node> forNodes(String indexName)
Index
for Node
s with the name indexName
.
If such an index doesn't exist it will be created with default configuration.
Indexes created with forNodes(String, Map)
can be returned by this
method also, so that you don't have to supply and match its configuration
for consecutive accesses.
This is the prefered way of accessing indexes, whether they were created with
{#forNodes(String)} or forNodes(String, Map)
.indexName
- the name of the node index.Index
corresponding to the indexName
.@Deprecated Index<Node> forNodes(String indexName, Map<String,String> customConfiguration)
Index
for Node
s with the name indexName
.
If the index exists it will be returned if the provider and customConfiguration
matches, else an IllegalArgumentException
will be thrown.
If the index doesn't exist it will be created with the given
provider (given in the configuration map).indexName
- the name of the index to create.customConfiguration
- configuration for the index being created.
Use the provider key to control which index implementation to use for this index if it's created.
The value represents the service name corresponding to the index implementation.
Other options can f.ex. say that the index will be a fulltext index and that it
should be case insensitive. The parameters given here (except "provider") are
only interpreted by the implementation represented by the provider.Index
for Node
s@Deprecated String[] nodeIndexNames()
Node
indexes.
Those names can then be used to get to the actual Index
instances.Node
indexes.@Deprecated boolean existsForRelationships(String indexName)
indexName
. Indexes are created when needed in calls to
forRelationships(String)
and forRelationships(String, Map)
.indexName
- the name of the index to check.indexName
.@Deprecated RelationshipIndex forRelationships(String indexName)
Index
for Relationship
s with the name indexName
.
If such an index doesn't exist it will be created with default configuration.
Indexes created with forRelationships(String, Map)
can be returned by this
method also, so that you don't have to supply and match its configuration
for consecutive accesses.
This is the prefered way of accessing indexes, whether they were created with
forRelationships(String)
or forRelationships(String, Map)
.indexName
- the name of the node index.Index
corresponding to the indexName
.@Deprecated RelationshipIndex forRelationships(String indexName, Map<String,String> customConfiguration)
Index
for Relationship
s with the name indexName
.
If the index exists it will be returned if the provider and customConfiguration
matches, else an IllegalArgumentException
will be thrown.
If the index doesn't exist it will be created with the given
provider (given in the configuration map).indexName
- the name of the index to create.customConfiguration
- configuration for the index being created.
Use the provider key to control which index implementation. The
value represents the service name corresponding to the index provider implementation.
Other options can f.ex. say that the index will be a fulltext index and that it
should be case insensitive. The parameters given here (except "provider") are
only interpreted by the implementation represented by the provider.Index
for Relationship
s@Deprecated String[] relationshipIndexNames()
Relationship
indexes.
Those names can then be used to get to the actual Index
instances.Relationship
indexes.@Deprecated Map<String,String> getConfiguration(Index<? extends PropertyContainer> index)
index
. Configuration can be
set when creating an index, with f.ex forNodes(String, Map)
or with setConfiguration(Index, String, String)
or
removeConfiguration(Index, String)
.index
- the index to get the configuration forindex
.@Deprecated String setConfiguration(Index<? extends PropertyContainer> index, String key, String value)
key
it will be overwritten.
WARNING: Overwriting parameters which controls the storage format of index
data may lead to existing index data being unusable.
The key "provider" is a reserved parameter and cannot be overwritten,
if key is "provider" then an IllegalArgumentException
will be thrown.index
- the index to set a configuration parameter for.key
- the configuration parameter key.value
- the new value of the configuration parameter.@Deprecated String removeConfiguration(Index<? extends PropertyContainer> index, String key)
key
nothing will happen and null
will be returned.
WARNING: Removing parameters which controls the storage format of index
data may lead to existing index data being unusable.
The key "provider" is a reserved parameter and cannot be removed,
if key is "provider" then an IllegalArgumentException
will be thrown.index
- the index to remove a configuration parameter from.key
- the configuration parameter key.@Deprecated AutoIndexer<Node> getNodeAutoIndexer()
@Deprecated RelationshipAutoIndexer getRelationshipAutoIndexer()
Copyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.