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