org.neo4j.kernel
Class IndexCreatorImpl
java.lang.Object
org.neo4j.kernel.IndexCreatorImpl
- All Implemented Interfaces:
- IndexCreator
public class IndexCreatorImpl
- extends Object
- implements IndexCreator
Method Summary |
IndexDefinition |
create()
Creates an index with the details specified by the other methods in this interface. |
IndexCreator |
on(String propertyKey)
Includes the given propertyKey in this index, such that nodes with
the assigned label and this property key will have its values indexed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
on
public IndexCreator on(String propertyKey)
- Description copied from interface:
IndexCreator
- Includes the given
propertyKey
in this index, such that nodes
with
the assigned label
and this property key will have its values indexed.
NOTE: currently only a single property key per index is supported.
- Specified by:
on
in interface IndexCreator
- Parameters:
propertyKey
- the property key to include in this index to be created.
- Returns:
- an
IndexCreator
instance to be used for further interaction.
create
public IndexDefinition create()
throws ConstraintViolationException
- Description copied from interface:
IndexCreator
- Creates an index with the details specified by the other methods in this interface.
- Specified by:
create
in interface IndexCreator
- Returns:
- the created
index
.
- Throws:
ConstraintViolationException
- if creating this index would violate one or more constraints.
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.