public class IndexCreatorImpl extends Object implements IndexCreator
| Constructor and Description |
|---|
IndexCreatorImpl(InternalSchemaActions actions,
Label label) |
| 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)
|
public IndexCreatorImpl(InternalSchemaActions actions, Label label)
public IndexCreator on(String propertyKey)
IndexCreatorpropertyKey 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.on in interface IndexCreatorpropertyKey - the property key to include in this index to be created.IndexCreator instance to be used for further interaction.public IndexDefinition create() throws ConstraintViolationException
IndexCreatorcreate in interface IndexCreatorindex.ConstraintViolationException - if creating this index would violate one or more constraints.Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.