use of org.apache.jena.dboe.base.record.Record in project jena by apache.
the class TestBPlusTreeRewriterNonTxn method scanComparision.
public static void scanComparision(List<Record> originaldata, BPlusTree bpt2) {
// ** Scan comparisonSetupIndex
Iterator<Record> iter1 = originaldata.iterator();
Iterator<Record> iter2 = bpt2.iterator();
long count = 0;
for (; iter1.hasNext(); ) {
count++;
Record r1 = iter1.next();
if (!iter2.hasNext())
error("Deviation: new B+Tree is smaller");
Record r2 = iter2.next();
if (!Record.equals(r1, r2))
error("Deviation in iteration record %d: %s : %s", count, r1, r2);
}
if (iter2.hasNext())
error("New B+Tree larger than original");
}
Aggregations