use of org.neo4j.storageengine.api.NodePropertyAccessor in project neo4j by neo4j.
the class SimpleUniquenessVerifierTest method updatesVerificationOneDuplicate.
@Test
void updatesVerificationOneDuplicate() throws IOException {
List<Object> data = asList("foo", "bar", "baz", "100", "200", 'q', 'u', 'x', "aa", "300", 'u', "-100");
NodePropertyAccessor nodePropertyAccessor = newPropertyAccessor(data);
insert(data);
assertDuplicatesCreated(nodePropertyAccessor, valueTupleList("aa", 'u', "-100"));
}
use of org.neo4j.storageengine.api.NodePropertyAccessor in project neo4j by neo4j.
the class SimpleUniquenessVerifierTest method populationVerificationManyDuplicate.
@Test
void populationVerificationManyDuplicate() throws IOException {
List<Object> data = asList("dog", "cat", "dog", "dog", "dog", "dog");
NodePropertyAccessor nodePropertyAccessor = newPropertyAccessor(data);
insert(data);
assertHasDuplicates(nodePropertyAccessor);
}
use of org.neo4j.storageengine.api.NodePropertyAccessor in project neo4j by neo4j.
the class SimpleUniquenessVerifierTest method populationVerificationOneDuplicate.
@Test
void populationVerificationOneDuplicate() throws IOException {
List<Object> data = asList("cat", "21", "22", "23", "24L", "(byte) 25", "26.0", "22", "dog");
NodePropertyAccessor nodePropertyAccessor = newPropertyAccessor(data);
insert(data);
assertHasDuplicates(nodePropertyAccessor);
}
use of org.neo4j.storageengine.api.NodePropertyAccessor in project neo4j by neo4j.
the class SimpleUniquenessVerifierTest method updatesVerificationManyDuplicate.
@Test
void updatesVerificationManyDuplicate() throws IOException {
List<Object> data = asList("-99", 'a', "-10.0", "-99.99999", "apa", "-99.99999", "mod", "div", "div", "-10");
NodePropertyAccessor nodePropertyAccessor = newPropertyAccessor(data);
insert(data);
assertDuplicatesCreated(nodePropertyAccessor, valueTupleList("-99.99999", 'a', "-10", "div"));
}
use of org.neo4j.storageengine.api.NodePropertyAccessor in project neo4j by neo4j.
the class LuceneSchemaIndexUniquenessVerificationIT method verifyUniqueness.
private void verifyUniqueness(Collection<Value> data) throws IOException, IndexEntryConflictException {
NodePropertyAccessor nodePropertyAccessor = new TestPropertyAccessor(new ArrayList<>(data));
index.verifyUniqueness(nodePropertyAccessor, new int[] { PROPERTY_KEY_ID });
}
Aggregations