use of org.apache.jena.dboe.base.record.Record in project jena by apache.
the class TupleIndexRecord method performDelete.
/**
* Delete a tuple
*/
@Override
protected void performDelete(Tuple<NodeId> tuple) {
Record r = TupleLib.record(factory, tuple, tupleMap);
index.delete(r);
}
use of org.apache.jena.dboe.base.record.Record in project jena by apache.
the class TupleIndexRecord method performAdd.
/**
* Insert a tuple
*/
@Override
protected void performAdd(Tuple<NodeId> tuple) {
Record r = TupleLib.record(factory, tuple, tupleMap);
index.insert(r);
}
use of org.apache.jena.dboe.base.record.Record in project jena by apache.
the class TestRecordBufferPage method fill.
private static void fill(RecordBuffer rb, int... nums) {
for (int num : nums) {
Record rec = record(num);
rb.add(rec);
}
}
use of org.apache.jena.dboe.base.record.Record in project jena by apache.
the class IndexMap method insert.
@Override
public boolean insert(Record record) {
Record r = find(record);
if (r != null && r.equals(record))
return false;
index.put(wrap(record.getKey()), wrap(record.getValue()));
return true;
}
use of org.apache.jena.dboe.base.record.Record in project jena by apache.
the class IndexTestLib method testDelete.
public static void testDelete(Index index, int[] vals) {
long size1 = index.size();
int count = 0;
count = delete(index, vals);
List<Record> x = intToRecord(vals, RecordLib.TestRecordLength);
for (Record r : x) Assert.assertFalse(index.contains(r));
long size2 = index.size();
assertEquals(size1 - count, size2);
}
Aggregations