public interface UniquenessVerifier extends Closeable
verify(PropertyAccessor, int)
.
Since updates can be applied while index is being populated we need to verify them as well.
Verification does not handle that automatically. They need to be collected in some way and then checked by
verify(PropertyAccessor, int, List)
.Modifier and Type | Method and Description |
---|---|
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.
|
void verify(org.neo4j.kernel.api.index.PropertyAccessor accessor, int propKeyId) throws org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException, IOException
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
.void verify(org.neo4j.kernel.api.index.PropertyAccessor accessor, int propKeyId, List<Object> updatedPropertyValues) throws org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException, IOException
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
.Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.