public interface SchemaIndex extends DatabaseIndex
Modifier and Type | Method and Description |
---|---|
org.neo4j.kernel.api.schema.index.IndexDescriptor |
getDescriptor() |
org.neo4j.storageengine.api.schema.IndexReader |
getIndexReader() |
LuceneIndexWriter |
getIndexWriter() |
boolean |
isOnline()
Check if this index is marked as online.
|
void |
markAsFailed(String failure)
Writes the given failure message to the failure storage.
|
void |
markAsOnline()
Marks index as online by including "status" -> "online" map into commit metadata of the first partition.
|
void |
verifyUniqueness(org.neo4j.kernel.api.index.PropertyAccessor accessor,
int[] propertyKeyIds)
Verifies uniqueness of property values present in this index.
|
void |
verifyUniqueness(org.neo4j.kernel.api.index.PropertyAccessor accessor,
int[] propertyKeyIds,
List<org.neo4j.values.storable.Value[]> updatedValueTuples)
Verifies uniqueness of updated property values.
|
allDocumentsReader, create, drop, exists, flush, getPartitions, isOpen, isReadOnly, isValid, maybeRefreshBlocking, open, snapshot
LuceneIndexWriter getIndexWriter() throws IOException
IOException
org.neo4j.storageengine.api.schema.IndexReader getIndexReader() throws IOException
IOException
org.neo4j.kernel.api.schema.index.IndexDescriptor getDescriptor()
void verifyUniqueness(org.neo4j.kernel.api.index.PropertyAccessor accessor, int[] propertyKeyIds) throws IOException, org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException
accessor
- the accessor to retrieve actual property values from the store.propertyKeyIds
- the ids of the properties to verify.org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException
- if there are duplicates.IOException
UniquenessVerifier.verify(PropertyAccessor, int[])
void verifyUniqueness(org.neo4j.kernel.api.index.PropertyAccessor accessor, int[] propertyKeyIds, List<org.neo4j.values.storable.Value[]> updatedValueTuples) throws IOException, org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException
accessor
- the accessor to retrieve actual property values from the store.propertyKeyIds
- the ids of the properties to verify.updatedValueTuples
- the values to check uniqueness for.org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException
- if there are duplicates.IOException
UniquenessVerifier.verify(PropertyAccessor, int[], List)
boolean isOnline() throws IOException
true
if index is online, false
otherwiseIOException
void markAsOnline() throws IOException
IOException
void markAsFailed(String failure) throws IOException
failure
- the failure message.IOException
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.