public class SimpleUniquenessVerifier extends Object implements UniquenessVerifier
UniquenessVerifier that is able to verify value uniqueness inside a single index partition using
it's PartitionSearcher.
This verifier reads all terms, checks document frequency for each term and verifies uniqueness of values from the property store if document frequency is greater than 1.
PartitionSearcher,
DuplicateCheckingCollector| Constructor and Description |
|---|
SimpleUniquenessVerifier(PartitionSearcher partitionSearcher) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
verify(org.neo4j.kernel.api.index.PropertyAccessor accessor,
int[] propKeyIds)
Verifies uniqueness of existing data.
|
void |
verify(org.neo4j.kernel.api.index.PropertyAccessor accessor,
int[] propKeyIds,
List<Object> updatedPropertyValues)
Verifies uniqueness of given values and existing data.
|
public SimpleUniquenessVerifier(PartitionSearcher partitionSearcher)
public void verify(org.neo4j.kernel.api.index.PropertyAccessor accessor,
int[] propKeyIds)
throws org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException,
IOException
UniquenessVerifierverify in interface UniquenessVerifieraccessor - the accessor to retrieve actual property values from the store.propKeyIds - the ids of the properties to verify.org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException - if there are duplicates.IOException - when Lucene throws IOException.public void verify(org.neo4j.kernel.api.index.PropertyAccessor accessor,
int[] propKeyIds,
List<Object> updatedPropertyValues)
throws org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException,
IOException
UniquenessVerifierverify in interface UniquenessVerifieraccessor - the accessor to retrieve actual property values from the store.propKeyIds - the ids of the properties to verify.updatedPropertyValues - the values to check uniqueness for.org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException - if there are duplicates.IOException - when Lucene throws IOException.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.