Search in sources :

Example 6 with ObjectFile

use of org.apache.jena.tdb.base.objectfile.ObjectFile in project jena by apache.

the class AbstractTestNodeTableTrans method create.

private NodeTableTrans create(Transaction txn, NodeTable base) {
    RecordFactory recordFactory = new RecordFactory(SystemTDB.LenNodeHash, SystemTDB.SizeOfNodeId);
    Index idx = new IndexMap(recordFactory);
    ObjectFile objectFile = createObjectFile();
    NodeTableTrans ntt = new NodeTableTrans(txn, "test", base, idx, objectFile);
    return ntt;
}
Also used : NodeTableTrans(org.apache.jena.tdb.transaction.NodeTableTrans) RecordFactory(org.apache.jena.tdb.base.record.RecordFactory) IndexMap(org.apache.jena.tdb.index.IndexMap) ObjectFile(org.apache.jena.tdb.base.objectfile.ObjectFile) Index(org.apache.jena.tdb.index.Index)

Aggregations

ObjectFile (org.apache.jena.tdb.base.objectfile.ObjectFile)6 ByteBuffer (java.nio.ByteBuffer)2 RecordFactory (org.apache.jena.tdb.base.record.RecordFactory)2 IndexMap (org.apache.jena.tdb.index.IndexMap)2 File (java.io.File)1 Pair (org.apache.jena.atlas.lib.Pair)1 Block (org.apache.jena.tdb.base.block.Block)1 BufferChannelFile (org.apache.jena.tdb.base.file.BufferChannelFile)1 Index (org.apache.jena.tdb.index.Index)1 NodeTable (org.apache.jena.tdb.store.nodetable.NodeTable)1 NodeTableTrans (org.apache.jena.tdb.transaction.NodeTableTrans)1