public class PartitionedUniquenessVerifier extends Object implements UniquenessVerifier
UniquenessVerifier that is able to verify value uniqueness across multiple index partitions using
corresponding PartitionSearchers.
This verifier reads all terms from all partitions using MultiTerms, checks document frequency for each term
and verifies uniqueness of values from the property store if document frequency is greater than 1.
MultiTerms,
PartitionSearcher,
DuplicateCheckingCollector| Constructor and Description |
|---|
PartitionedUniquenessVerifier(List<PartitionSearcher> searchers) |
| 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 PartitionedUniquenessVerifier(List<PartitionSearcher> searchers)
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.