|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.kernel.ProxyIndexManager
public class ProxyIndexManager
| Field Summary |
|---|
| Fields inherited from interface org.neo4j.graphdb.index.IndexManager |
|---|
PROVIDER |
| Constructor Summary | |
|---|---|
ProxyIndexManager()
|
|
| Method Summary | |
|---|---|
boolean |
existsForNodes(String indexName)
Returns whether or not there exists a node index with the name indexName. |
boolean |
existsForRelationships(String indexName)
Returns whether or not there exists a relationship index with the name indexName. |
Index<Node> |
forNodes(String indexName)
Returns an Index for Nodes with the name indexName. |
Index<Node> |
forNodes(String indexName,
Map<String,String> customConfiguration)
Returns an Index for Nodes with the name indexName. |
RelationshipIndex |
forRelationships(String indexName)
Returns an Index for Relationships with the name indexName. |
RelationshipIndex |
forRelationships(String indexName,
Map<String,String> customConfiguration)
Returns an Index for Relationships with the name indexName. |
Map<String,String> |
getConfiguration(Index<? extends PropertyContainer> index)
Returns the configuration for index. |
AutoIndexer<Node> |
getNodeAutoIndexer()
|
RelationshipAutoIndexer |
getRelationshipAutoIndexer()
|
String[] |
nodeIndexNames()
Returns the names of all existing Node indexes. |
String[] |
relationshipIndexNames()
Returns the names of all existing Relationship indexes. |
String |
removeConfiguration(Index<? extends PropertyContainer> index,
String key)
EXPERT: Removes a configuration parameter from an index. |
String |
setConfiguration(Index<? extends PropertyContainer> index,
String key,
String value)
EXPERT: Sets a configuration parameter for an index. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyIndexManager()
| Method Detail |
|---|
public boolean existsForNodes(String indexName)
IndexManagerindexName. Indexes are created when needed in calls to
IndexManager.forNodes(String) and IndexManager.forNodes(String, Map).
existsForNodes in interface IndexManagerindexName - the name of the index to check.
indexName.public Index<Node> forNodes(String indexName)
IndexManagerIndex for Nodes with the name indexName.
If such an index doesn't exist it will be created with default configuration.
Indexes created with IndexManager.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
IndexManager.forNodes(String) or IndexManager.forNodes(String, Map).
forNodes in interface IndexManagerindexName - the name of the node index.
Index corresponding to the indexName.
public Index<Node> forNodes(String indexName,
Map<String,String> customConfiguration)
IndexManagerIndex for Nodes 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).
forNodes in interface IndexManagerindexName - the name of the index to create.customConfiguration - configuration for the index being created.
Use the IndexImplementation to use for this index if it's created. The
value represents the service name corresponding to the IndexImplementation.
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.public String[] nodeIndexNames()
IndexManagerNode indexes.
Those names can then be used to get to the actual Index
instances.
nodeIndexNames in interface IndexManagerNode indexes.public boolean existsForRelationships(String indexName)
IndexManagerindexName. Indexes are created when needed in calls to
IndexManager.forRelationships(String) and IndexManager.forRelationships(String, Map).
existsForRelationships in interface IndexManagerindexName - the name of the index to check.
indexName.public RelationshipIndex forRelationships(String indexName)
IndexManagerIndex for Relationships with the name indexName.
If such an index doesn't exist it will be created with default configuration.
Indexes created with IndexManager.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
IndexManager.forRelationships(String) or IndexManager.forRelationships(String, Map).
forRelationships in interface IndexManagerindexName - the name of the node index.
Index corresponding to the indexName.
public RelationshipIndex forRelationships(String indexName,
Map<String,String> customConfiguration)
IndexManagerIndex for Relationships 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).
forRelationships in interface IndexManagerindexName - the name of the index to create.customConfiguration - configuration for the index being created.
Use the IndexImplementation to use for this index if it's created. The
value represents the service name corresponding to the IndexImplementation.
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.public String[] relationshipIndexNames()
IndexManagerRelationship indexes.
Those names can then be used to get to the actual Index
instances.
relationshipIndexNames in interface IndexManagerRelationship indexes.public Map<String,String> getConfiguration(Index<? extends PropertyContainer> index)
IndexManagerindex. Configuration can be
set when creating an index, with f.ex IndexManager.forNodes(String, Map)
or with IndexManager.setConfiguration(Index, String, String) or
IndexManager.removeConfiguration(Index, String).
getConfiguration in interface IndexManagerindex.
public String setConfiguration(Index<? extends PropertyContainer> index,
String key,
String value)
IndexManagerkey 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.
setConfiguration in interface IndexManagerindex - the index to set a configuration parameter for.key - the configuration parameter key.value - the new value of the configuration parameter.
public String removeConfiguration(Index<? extends PropertyContainer> index,
String key)
IndexManagerkey 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.
removeConfiguration in interface IndexManagerindex - the index to remove a configuration parameter from.key - the configuration parameter key.
public AutoIndexer<Node> getNodeAutoIndexer()
getNodeAutoIndexer in interface IndexManagerpublic RelationshipAutoIndexer getRelationshipAutoIndexer()
getRelationshipAutoIndexer in interface IndexManager
|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||