public interface SchemaWriteOperations
Modifier and Type | Method and Description |
---|---|
void |
constraintDrop(UniquenessConstraint constraint) |
org.neo4j.kernel.impl.api.index.IndexDescriptor |
indexCreate(long labelId,
long propertyKeyId)
Creates an index, indexing properties with the given
propertyKeyId for nodes with the given
labelId . |
void |
indexDrop(org.neo4j.kernel.impl.api.index.IndexDescriptor descriptor)
Drops a
IndexDescriptor from the database |
org.neo4j.kernel.impl.api.index.IndexDescriptor |
uniqueIndexCreate(long labelId,
long propertyKey)
Creates an index for use with a uniqueness constraint.
|
void |
uniqueIndexDrop(org.neo4j.kernel.impl.api.index.IndexDescriptor descriptor) |
UniquenessConstraint |
uniquenessConstraintCreate(long labelId,
long propertyKeyId) |
org.neo4j.kernel.impl.api.index.IndexDescriptor indexCreate(long labelId, long propertyKeyId) throws SchemaKernelException
propertyKeyId
for nodes with the given
labelId
.SchemaKernelException
org.neo4j.kernel.impl.api.index.IndexDescriptor uniqueIndexCreate(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(org.neo4j.kernel.impl.api.index.IndexDescriptor descriptor) throws DropIndexFailureException
IndexDescriptor
from the databaseDropIndexFailureException
void uniqueIndexDrop(org.neo4j.kernel.impl.api.index.IndexDescriptor descriptor) throws DropIndexFailureException
DropIndexFailureException
UniquenessConstraint uniquenessConstraintCreate(long labelId, long propertyKeyId) throws SchemaKernelException, org.neo4j.kernel.impl.api.ConstraintCreationKernelException
SchemaKernelException
org.neo4j.kernel.impl.api.ConstraintCreationKernelException
void constraintDrop(UniquenessConstraint constraint)
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.