use of org.apache.jena.tdb.base.record.Record in project jena by apache.
the class RecordRangeIterator method next.
@Override
public Record next() {
if (!hasNext())
throw new NoSuchElementException();
Record x = slot;
slot = null;
return x;
}
use of org.apache.jena.tdb.base.record.Record in project jena by apache.
the class IndexMap method add.
@Override
public boolean add(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.tdb.base.record.Record in project jena by apache.
the class TestTransIterator method transIter_01.
@Test
public void transIter_01() {
int[] vals = {};
RangeIndex rIndex = build(2, vals);
Iterator<Record> iter1 = rIndex.iterator();
Iterator<Record> iter2 = rIndex.iterator();
count(iter1, vals.length);
count(iter2, vals.length);
}
use of org.apache.jena.tdb.base.record.Record in project jena by apache.
the class TestTransIterator method transIter_02.
@Test
public void transIter_02() {
int[] vals = { 1, 2, 3, 4, 5, 6, 7 };
RangeIndex rIndex = build(2, vals);
Iterator<Record> iter1 = rIndex.iterator();
Iterator<Record> iter2 = rIndex.iterator();
count(iter1, vals.length);
count(iter2, vals.length);
}
use of org.apache.jena.tdb.base.record.Record in project jena by apache.
the class TestRecordBufferPage method record.
private static Record record(int i) {
byte[] b = new byte[] { (byte) ((i >> 8) & 0xFF), (byte) (i & 0xFF) };
Record r = factory.create(b);
return r;
}
Aggregations