use of org.apache.jena.tdb.base.buffer.RecordBuffer in project jena by apache.
the class TestRecordBuffer method recBuffer10.
@Test(expected = BufferException.class)
public void recBuffer10() {
RecordBuffer rb = make(4, 5);
contains(rb, 2, 4, 6, 8);
rb.shiftUp(4);
}
use of org.apache.jena.tdb.base.buffer.RecordBuffer in project jena by apache.
the class TestRecordBuffer method recBuffer06.
@Test
public void recBuffer06() {
RecordBuffer rb = make(4, 5);
contains(rb, 2, 4, 6, 8);
rb.shiftDown(2);
contains(rb, 2, 4, 8);
rb.shiftUp(2);
contains(rb, 2, 4, -1, 8);
}
use of org.apache.jena.tdb.base.buffer.RecordBuffer in project jena by apache.
the class TestRecordBuffer method recBufferIterate02.
@Test
public void recBufferIterate02() {
RecordBuffer rb = make(3, 5);
Iterator<Record> iter = rb.iterator();
same(iter, 2, 4, 6);
}
use of org.apache.jena.tdb.base.buffer.RecordBuffer in project jena by apache.
the class TestRecordBuffer method recBuffer08.
@Test
public void recBuffer08() {
RecordBuffer rb = make(4, 5);
contains(rb, 2, 4, 6, 8);
rb.shiftDown(3);
contains(rb, 2, 4, 6);
rb.shiftUp(2);
contains(rb, 2, 4, -1, 6);
}
use of org.apache.jena.tdb.base.buffer.RecordBuffer in project jena by apache.
the class TestRecordBuffer method recBuffer11.
@Test(expected = BufferException.class)
public void recBuffer11() {
RecordBuffer rb = make(5, 5);
contains(rb, 2, 4, 6, 8, 10);
rb.add(r(12));
}
Aggregations