use of org.neo4j.unsafe.impl.batchimport.cache.idmapping.string.DuplicateInputIdException in project neo4j by neo4j.
the class BadCollector method collectDuplicateNode.
@Override
public void collectDuplicateNode(final Object id, long actualId, final String group, final String firstSource, final String otherSource) {
checkTolerance(DUPLICATE_NODES, new ProblemReporter() {
@Override
public String message() {
return DuplicateInputIdException.message(id, group, firstSource, otherSource);
}
@Override
public InputException exception() {
return new DuplicateInputIdException(id, group, firstSource, otherSource);
}
});
if (leftOverDuplicateNodeIdsCursor == leftOverDuplicateNodeIds.length) {
leftOverDuplicateNodeIds = Arrays.copyOf(leftOverDuplicateNodeIds, leftOverDuplicateNodeIds.length * 2);
}
leftOverDuplicateNodeIds[leftOverDuplicateNodeIdsCursor++] = actualId;
}
Aggregations