Search in sources :

Example 51 with Record

use of org.apache.jena.tdb.base.record.Record in project jena by apache.

the class TestRecordBuffer method recBufferIterate11.

@Test
public void recBufferIterate11() {
    RecordBuffer rb = make(5, 5);
    Iterator<Record> iter = rb.iterator(intToRecord(3), intToRecord(9));
    same(iter, 4, 6, 8);
}
Also used : Record(org.apache.jena.tdb.base.record.Record) RecordLib.intToRecord(org.apache.jena.tdb.base.record.RecordLib.intToRecord) RecordBuffer(org.apache.jena.tdb.base.buffer.RecordBuffer) Test(org.junit.Test) BaseTest(org.apache.jena.atlas.junit.BaseTest)

Example 52 with Record

use of org.apache.jena.tdb.base.record.Record in project jena by apache.

the class TestRecordBuffer method recBufferIterate07.

@Test
public void recBufferIterate07() {
    RecordBuffer rb = make(3, 5);
    Iterator<Record> iter = rb.iterator(null, intToRecord(2));
    same(iter);
}
Also used : Record(org.apache.jena.tdb.base.record.Record) RecordLib.intToRecord(org.apache.jena.tdb.base.record.RecordLib.intToRecord) RecordBuffer(org.apache.jena.tdb.base.buffer.RecordBuffer) Test(org.junit.Test) BaseTest(org.apache.jena.atlas.junit.BaseTest)

Example 53 with Record

use of org.apache.jena.tdb.base.record.Record in project jena by apache.

the class TestRecordBuffer method recBufferIterate06.

@Test
public void recBufferIterate06() {
    RecordBuffer rb = make(3, 5);
    Iterator<Record> iter = rb.iterator(null, intToRecord(1));
    same(iter);
}
Also used : Record(org.apache.jena.tdb.base.record.Record) RecordLib.intToRecord(org.apache.jena.tdb.base.record.RecordLib.intToRecord) RecordBuffer(org.apache.jena.tdb.base.buffer.RecordBuffer) Test(org.junit.Test) BaseTest(org.apache.jena.atlas.junit.BaseTest)

Example 54 with Record

use of org.apache.jena.tdb.base.record.Record 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);
}
Also used : Record(org.apache.jena.tdb.base.record.Record) RecordLib.intToRecord(org.apache.jena.tdb.base.record.RecordLib.intToRecord) RecordBuffer(org.apache.jena.tdb.base.buffer.RecordBuffer) Test(org.junit.Test) BaseTest(org.apache.jena.atlas.junit.BaseTest)

Example 55 with Record

use of org.apache.jena.tdb.base.record.Record 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);
}
Also used : Record(org.apache.jena.tdb.base.record.Record) RecordLib.intToRecord(org.apache.jena.tdb.base.record.RecordLib.intToRecord) RecordBuffer(org.apache.jena.tdb.base.buffer.RecordBuffer) Test(org.junit.Test) BaseTest(org.apache.jena.atlas.junit.BaseTest)

Aggregations

Record (org.apache.jena.tdb.base.record.Record)95 Test (org.junit.Test)20 RecordLib.intToRecord (org.apache.jena.tdb.base.record.RecordLib.intToRecord)15 RecordBuffer (org.apache.jena.tdb.base.buffer.RecordBuffer)14 BaseTest (org.apache.jena.atlas.junit.BaseTest)10 RangeIndex (org.apache.jena.tdb.index.RangeIndex)8 BlockMgr (org.apache.jena.tdb.base.block.BlockMgr)6 RecordFactory (org.apache.jena.tdb.base.record.RecordFactory)6 NoSuchElementException (java.util.NoSuchElementException)5 FileSet (org.apache.jena.tdb.base.file.FileSet)5 BPlusTree (org.apache.jena.tdb.index.bplustree.BPlusTree)5 NodeId (org.apache.jena.tdb.store.NodeId)5 Pair (org.apache.jena.atlas.lib.Pair)4 Location (org.apache.jena.tdb.base.file.Location)4 BPlusTreeParams (org.apache.jena.tdb.index.bplustree.BPlusTreeParams)4 Tuple (org.apache.jena.atlas.lib.tuple.Tuple)3 StorageException (org.apache.jena.tdb.base.StorageException)3 RecordBufferPage (org.apache.jena.tdb.base.recordbuffer.RecordBufferPage)3 ColumnMap (org.apache.jena.tdb.lib.ColumnMap)3 TupleIndexRecord (org.apache.jena.tdb.store.tupletable.TupleIndexRecord)3