Search in sources :

Example 1 with TransBinaryDataFile

use of org.apache.jena.dboe.trans.data.TransBinaryDataFile in project jena by apache.

the class TDB2StorageBuilder method buildBaseNodeTable.

private NodeTable buildBaseNodeTable(String name) {
    RecordFactory recordFactory = new RecordFactory(SystemTDB.LenNodeHash, SystemTDB.SizeOfNodeId);
    Index index = makeRangeIndex(recordFactory, name);
    String dataname = name + "-data";
    TransBinaryDataFile transBinFile = makeBinaryDataFile(dataname);
    components.add(transBinFile);
    return new NodeTableTRDF(index, transBinFile);
}
Also used : NodeTableTRDF(org.apache.jena.tdb2.store.nodetable.NodeTableTRDF) RecordFactory(org.apache.jena.dboe.base.record.RecordFactory) TransBinaryDataFile(org.apache.jena.dboe.trans.data.TransBinaryDataFile) RangeIndex(org.apache.jena.dboe.index.RangeIndex) TupleIndex(org.apache.jena.tdb2.store.tupletable.TupleIndex) Index(org.apache.jena.dboe.index.Index)

Example 2 with TransBinaryDataFile

use of org.apache.jena.dboe.trans.data.TransBinaryDataFile in project jena by apache.

the class TDB2StorageBuilder method makeBinaryDataFile.

private TransBinaryDataFile makeBinaryDataFile(String name) {
    ComponentId cid = componentIdMgr.getComponentId(name);
    FileSet fs = new FileSet(location, name);
    BinaryDataFile binFile = FileFactory.createBinaryDataFile(fs, Names.extObjNodeData);
    BufferChannel pState = FileFactory.createBufferChannel(fs, Names.extBdfState);
    // ComponentId mgt.
    TransBinaryDataFile transBinFile = new TransBinaryDataFile(binFile, cid, pState);
    return transBinFile;
}
Also used : TransBinaryDataFile(org.apache.jena.dboe.trans.data.TransBinaryDataFile) TransBinaryDataFile(org.apache.jena.dboe.trans.data.TransBinaryDataFile)

Example 3 with TransBinaryDataFile

use of org.apache.jena.dboe.trans.data.TransBinaryDataFile in project jena by apache.

the class LoaderOps method ntDataFile.

/**
 * Get the node storage for a {@Link NodeTable}
 */
public static TransBinaryDataFile ntDataFile(NodeTable nt) {
    NodeTableTRDF ntt = (NodeTableTRDF) (nt.baseNodeTable());
    BinaryDataFile bdf = ntt.getData();
    TransBinaryDataFile tbdf = (TransBinaryDataFile) bdf;
    return tbdf;
}
Also used : NodeTableTRDF(org.apache.jena.tdb2.store.nodetable.NodeTableTRDF) TransBinaryDataFile(org.apache.jena.dboe.trans.data.TransBinaryDataFile) TransBinaryDataFile(org.apache.jena.dboe.trans.data.TransBinaryDataFile) BinaryDataFile(org.apache.jena.dboe.base.file.BinaryDataFile)

Aggregations

TransBinaryDataFile (org.apache.jena.dboe.trans.data.TransBinaryDataFile)3 NodeTableTRDF (org.apache.jena.tdb2.store.nodetable.NodeTableTRDF)2 BinaryDataFile (org.apache.jena.dboe.base.file.BinaryDataFile)1 RecordFactory (org.apache.jena.dboe.base.record.RecordFactory)1 Index (org.apache.jena.dboe.index.Index)1 RangeIndex (org.apache.jena.dboe.index.RangeIndex)1 TupleIndex (org.apache.jena.tdb2.store.tupletable.TupleIndex)1