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);
}
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;
}
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;
}
Aggregations