public interface SchemaWriteOperations
Modifier and Type | Method and Description |
---|---|
void |
constraintDrop(StatementState state,
UniquenessConstraint constraint) |
org.neo4j.kernel.impl.api.index.IndexDescriptor |
indexCreate(StatementState state,
long labelId,
long propertyKeyId)
Creates an index, indexing properties with the given
propertyKeyId for nodes with the given
labelId . |
void |
indexDrop(StatementState state,
org.neo4j.kernel.impl.api.index.IndexDescriptor descriptor)
Drops a
IndexDescriptor from the database |
org.neo4j.kernel.impl.api.index.IndexDescriptor |
uniqueIndexCreate(StatementState state,
long labelId,
long propertyKey)
Creates an index for use with a uniqueness constraint.
|
void |
uniqueIndexDrop(StatementState state,
org.neo4j.kernel.impl.api.index.IndexDescriptor descriptor) |
UniquenessConstraint |
uniquenessConstraintCreate(StatementState state,
long labelId,
long propertyKeyId) |
org.neo4j.kernel.impl.api.index.IndexDescriptor indexCreate(StatementState state, long labelId, long propertyKeyId) throws SchemaKernelException
propertyKeyId
for nodes with the given
labelId
.SchemaKernelException
org.neo4j.kernel.impl.api.index.IndexDescriptor uniqueIndexCreate(StatementState state, long labelId, long propertyKey) throws SchemaKernelException
propertyKeyId
for nodes with the given labelId
, and assumes that the database provides it with
unique property values. If unique property values are not provided by the database, the index will notify
through an exception and enter a "bad state". (This notification facility is used during the verification phase
of uniqueness constraint creation).
This method is not used from the outside. It is used internally when
creating a uniqueness constraint
, invoked through a separate
transaction (the separate transaction is why it has to be exposed in this API).SchemaKernelException
void indexDrop(StatementState state, org.neo4j.kernel.impl.api.index.IndexDescriptor descriptor) throws DropIndexFailureException
IndexDescriptor
from the databaseDropIndexFailureException
void uniqueIndexDrop(StatementState state, org.neo4j.kernel.impl.api.index.IndexDescriptor descriptor) throws DropIndexFailureException
DropIndexFailureException
UniquenessConstraint uniquenessConstraintCreate(StatementState state, long labelId, long propertyKeyId) throws SchemaKernelException
SchemaKernelException
void constraintDrop(StatementState state, UniquenessConstraint constraint)
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.