public interface IndexCreator
create()
must be called for the index to actually be created. An index creator knows
which label
it is to be created for.
All methods except create()
will return an IndexCreator
which should be
used for further interaction.Schema
Modifier and Type | Method and Description |
---|---|
IndexDefinition |
create()
Creates an index with the details specified by the other methods in this interface.
|
IndexCreator |
on(String propertyKey)
|
IndexCreator on(String propertyKey)
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.propertyKey
- the property key to include in this index to be created.IndexCreator
instance to be used for further interaction.IndexDefinition create() throws ConstraintViolationException
index
.ConstraintViolationException
- if creating this index would violate one or more constraints.Copyright © 2002–2013 The Neo4j Graph Database Project. All rights reserved.