public class PartitionedUniquenessVerifier extends Object implements UniquenessVerifier
UniquenessVerifier
that is able to verify value uniqueness across multiple index partitions using
corresponding PartitionSearcher
s.
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 propKeyId)
Verifies uniqueness of existing data.
|
void |
verify(org.neo4j.kernel.api.index.PropertyAccessor accessor,
int propKeyId,
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 propKeyId) throws org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException, IOException
UniquenessVerifier
verify
in interface UniquenessVerifier
accessor
- the accessor to retrieve actual property values from the store.propKeyId
- the id of the property 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 propKeyId, List<Object> updatedPropertyValues) throws org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException, IOException
UniquenessVerifier
verify
in interface UniquenessVerifier
accessor
- the accessor to retrieve actual property values from the store.propKeyId
- 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.IOException
- when Lucene throws IOException
.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.