use of org.apache.jena.tdb.base.buffer.RecordBuffer in project jena by apache.
the class TestRecordBuffer method recBuffer07.
// Shift RHS - out of bounds
@Test
public void recBuffer07() {
RecordBuffer rb = make(4, 5);
contains(rb, 2, 4, 6, 8);
rb.shiftUp(3);
rb.set(3, r(1));
contains(rb, 2, 4, 6, 1, 8);
rb.shiftDown(3);
contains(rb, 2, 4, 6, 8);
}
use of org.apache.jena.tdb.base.buffer.RecordBuffer in project jena by apache.
the class TestRecordBuffer method recBufferIterate08.
@Test
public void recBufferIterate08() {
RecordBuffer rb = make(3, 5);
Iterator<Record> iter = rb.iterator(null, intToRecord(3));
same(iter, 2);
}
use of org.apache.jena.tdb.base.buffer.RecordBuffer in project jena by apache.
the class TestRecordBuffer method recBufferIterate09.
@Test
public void recBufferIterate09() {
RecordBuffer rb = make(5, 5);
Iterator<Record> iter = rb.iterator(null, intToRecord(99));
same(iter, 2, 4, 6, 8, 10);
}
use of org.apache.jena.tdb.base.buffer.RecordBuffer in project jena by apache.
the class TestRecordBuffer method recBufferIterate03.
@Test
public void recBufferIterate03() {
RecordBuffer rb = make(3, 5);
Iterator<Record> iter = rb.iterator(intToRecord(4), null);
same(iter, 4, 6);
}
Aggregations