use of org.apache.jena.dboe.index.Index in project jena by apache.
the class BuildTestLib method makeNodeTableBase.
public static NodeTable makeNodeTableBase(Location location, String basename, StoreParams params) {
RecordFactory recordFactory = new RecordFactory(SystemTDB.LenNodeHash, SystemTDB.SizeOfNodeId);
FileSet fs = new FileSet(location, basename);
Index index = buildRangeIndex(fs, recordFactory, params);
BinaryDataFile bdf = createBinaryDataFile(location, basename + "-data");
NodeTable nt = new NodeTableTRDF(index, bdf);
return nt;
}
use of org.apache.jena.dboe.index.Index in project jena by apache.
the class IndexTestLib method testInsert.
public static Index testInsert(IndexMaker maker, int[] keys) {
Index index = maker.makeIndex();
testInsert(index, keys);
return index;
}
use of org.apache.jena.dboe.index.Index in project jena by apache.
the class IndexTestLib method buildIndex.
// ---------- Utilities
// public static RangeIndex buildRangeIndex(RangeIndexMaker maker, int[]
// keys)
// {
// RangeIndex index = maker.make();
// IndexTestLib.add(index, keys);
// return index;
// }
public static Index buildIndex(IndexMaker maker, int[] keys) {
Index index = maker.makeIndex();
IndexTestLib.add(index, keys);
return index;
}
use of org.apache.jena.dboe.index.Index in project jena by apache.
the class AbstractTestIndex method index_find_2.
@Test
public void index_find_2() {
int[] keys = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
Index index = test(keys);
Record r = intToRecord(20, RecordLib.TestRecordLength);
r = index.find(r);
assertNull(r);
}
use of org.apache.jena.dboe.index.Index in project jena by apache.
the class AbstractTestIndex method index_find_1.
@Test
public void index_find_1() {
int[] keys = { 1 };
Index index = test(keys);
Record r = intToRecord(1, RecordLib.TestRecordLength);
r = index.find(r);
assertNotNull(r);
}
Aggregations