use of org.apache.jena.tdb.base.file.PlainFileMem in project jena by apache.
the class ExtHash method createMem.
/** Testing version - in-memory but inefficient as it uses a copy-in/copy-out block manager as a RAM disk*/
public static ExtHash createMem(RecordFactory factory, int bucketSizeBytes) {
BlockMgr mgr = BlockMgrFactory.createMem("ExtHash", bucketSizeBytes);
ExtHash eHash = new ExtHash(new PlainFileMem(), factory, mgr);
return eHash;
}
use of org.apache.jena.tdb.base.file.PlainFileMem 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;
}
Aggregations