public class ReadOnlyDatabaseSchemaIndex extends ReadOnlyAbstractDatabaseIndex<org.neo4j.kernel.api.impl.schema.LuceneSchemaIndex> implements SchemaIndex
| Constructor and Description |
|---|
ReadOnlyDatabaseSchemaIndex(PartitionedIndexStorage indexStorage,
org.neo4j.kernel.api.index.IndexConfiguration indexConfig,
org.neo4j.kernel.impl.api.index.sampling.IndexSamplingConfig samplingConfig,
ReadOnlyIndexPartitionFactory readOnlyIndexPartitionFactory) |
| Modifier and Type | Method and Description |
|---|---|
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()
Unsupported operation in read only index.
|
void |
verifyUniqueness(org.neo4j.kernel.api.index.PropertyAccessor accessor,
int propertyKeyId)
Verifies uniqueness of property values present in this index.
|
void |
verifyUniqueness(org.neo4j.kernel.api.index.PropertyAccessor accessor,
int propertyKeyId,
List<Object> updatedPropertyValues)
Verifies uniqueness of updated property values.
|
allDocumentsReader, close, create, drop, exists, flush, getPartitions, isOpen, isReadOnly, isValid, maybeRefreshBlocking, open, snapshotequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallDocumentsReader, create, drop, exists, flush, getPartitions, isOpen, isReadOnly, isValid, maybeRefreshBlocking, open, snapshotpublic ReadOnlyDatabaseSchemaIndex(PartitionedIndexStorage indexStorage, org.neo4j.kernel.api.index.IndexConfiguration indexConfig, org.neo4j.kernel.impl.api.index.sampling.IndexSamplingConfig samplingConfig, ReadOnlyIndexPartitionFactory readOnlyIndexPartitionFactory)
public LuceneIndexWriter getIndexWriter() throws IOException
getIndexWriter in interface SchemaIndexIOExceptionpublic org.neo4j.storageengine.api.schema.IndexReader getIndexReader()
throws IOException
getIndexReader in interface SchemaIndexIOExceptionpublic void verifyUniqueness(org.neo4j.kernel.api.index.PropertyAccessor accessor,
int propertyKeyId)
throws IOException,
org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException
verifyUniqueness in interface SchemaIndexaccessor - the accessor to retrieve actual property values from the store.propertyKeyId - the id of the property to verify.IOExceptionorg.neo4j.kernel.api.exceptions.index.IndexEntryConflictException - if there are duplicates.UniquenessVerifier.verify(PropertyAccessor, int)public void verifyUniqueness(org.neo4j.kernel.api.index.PropertyAccessor accessor,
int propertyKeyId,
List<Object> updatedPropertyValues)
throws IOException,
org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException
verifyUniqueness in interface SchemaIndexaccessor - the accessor to retrieve actual property values from the store.propertyKeyId - the id of the property to verify.updatedPropertyValues - the values to check uniqueness for.IOExceptionorg.neo4j.kernel.api.exceptions.index.IndexEntryConflictException - if there are duplicates.UniquenessVerifier.verify(PropertyAccessor, int, List)public boolean isOnline()
throws IOException
isOnline in interface SchemaIndextrue if index is online, false otherwiseIOExceptionpublic void markAsOnline()
throws IOException
markAsOnline in interface SchemaIndexIOExceptionpublic void markAsFailed(String failure) throws IOException
markAsFailed in interface SchemaIndexfailure - the failure message.IOExceptionCopyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.