use of org.apache.jena.tdb.index.ext.ExtHash in project jena by apache.
the class TestExtHash method makeIndex.
@Override
protected Index makeIndex(int kLen, int vLen) {
RecordFactory factory = new RecordFactory(kLen, vLen);
BlockMgr mgr = BlockMgrFactory.createMem("EXT", 32);
ExtHash eHash = new ExtHash(new PlainFileMem(), factory, mgr);
return eHash;
}
use of org.apache.jena.tdb.index.ext.ExtHash in project jena by apache.
the class ExtHashTestBase method runTest.
public static void runTest(int[] r1, int[] r2) {
try {
ExtHash extHash = create(r1);
check(extHash, r1);
delete(extHash, r2);
check(extHash);
} catch (RuntimeException ex) {
System.err.println();
System.err.printf("int[] r1 = {%s} ;\n", strings(r1));
System.err.printf("int[] r2 = {%s}; \n", strings(r2));
throw ex;
}
}
use of org.apache.jena.tdb.index.ext.ExtHash in project jena by apache.
the class ExtHashTestBase method create.
public static ExtHash create(int... recs) {
ExtHash extHash = make();
for (int i : recs) {
Record r = intToRecord(i);
extHash.add(r);
if (false)
extHash.dump();
}
return extHash;
}
Aggregations