public class LuceneSchemaIndex extends AbstractLuceneIndex
| Constructor and Description |
|---|
LuceneSchemaIndex(PartitionedIndexStorage indexStorage,
org.neo4j.kernel.api.index.IndexConfiguration config,
org.neo4j.kernel.impl.api.index.sampling.IndexSamplingConfig samplingConfig,
org.neo4j.function.Factory<org.apache.lucene.index.IndexWriterConfig> writerConfigFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
drop()
Close index and deletes all it's partitions.
|
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 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.
|
addNewPartition, allDocumentsReader, close, create, exists, flush, getFirstPartition, getPartitions, hasSinglePartition, isOpen, isValid, maybeRefreshBlocking, open, snapshotpublic LuceneSchemaIndex(PartitionedIndexStorage indexStorage, org.neo4j.kernel.api.index.IndexConfiguration config, org.neo4j.kernel.impl.api.index.sampling.IndexSamplingConfig samplingConfig, org.neo4j.function.Factory<org.apache.lucene.index.IndexWriterConfig> writerConfigFactory)
public LuceneIndexWriter getIndexWriter() throws IOException
IOExceptionpublic org.neo4j.storageengine.api.schema.IndexReader getIndexReader()
throws IOException
IOExceptionpublic void verifyUniqueness(org.neo4j.kernel.api.index.PropertyAccessor accessor,
int propertyKeyId)
throws IOException,
org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException
accessor - the accessor to retrieve actual property values from the store.propertyKeyId - the id of the property to verify.org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException - if there are duplicates.IOExceptionUniquenessVerifier.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
accessor - 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.org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException - if there are duplicates.IOExceptionUniquenessVerifier.verify(PropertyAccessor, int, List)public void drop()
throws IOException
AbstractLuceneIndexdrop in class AbstractLuceneIndexIOExceptionpublic boolean isOnline()
throws IOException
true if index is online, false otherwiseIOExceptionpublic void markAsOnline()
throws IOException
IOExceptionpublic void markAsFailed(String failure) throws IOException
failure - the failure message.IOExceptionCopyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.