Search in sources :

Example 11 with FileSet

use of org.apache.jena.tdb.base.file.FileSet in project jena by apache.

the class DatasetBuilderStd method makeTupleIndex.

protected TupleIndex makeTupleIndex(Location location, String name, String primary, String indexOrder, StoreParams params) {
    // Commonly, name == indexOrder.
    FileSet fs = new FileSet(location, name);
    ColumnMap colMap = new ColumnMap(primary, indexOrder);
    return /*tupleIndexBuilder.*/
    buildTupleIndex(fs, colMap, indexOrder, params);
}
Also used : ColumnMap(org.apache.jena.tdb.lib.ColumnMap) FileSet(org.apache.jena.tdb.base.file.FileSet)

Example 12 with FileSet

use of org.apache.jena.tdb.base.file.FileSet in project jena by apache.

the class dumpnodes method determineNodeTable.

private ObjectFile determineNodeTable(Location loc) {
    // Directly open the nodes.dat file.
    StoreParams storeParams = StoreParams.getDftStoreParams();
    FileSet fsId2Node = new FileSet(loc, storeParams.getIndexId2Node());
    String file = fsId2Node.filename(Names.extNodeData);
    ObjectFile objFile = FileFactory.createObjectFileDisk(file);
    return objFile;
}
Also used : StoreParams(org.apache.jena.tdb.setup.StoreParams) FileSet(org.apache.jena.tdb.base.file.FileSet) ObjectFile(org.apache.jena.tdb.base.objectfile.ObjectFile)

Aggregations

FileSet (org.apache.jena.tdb.base.file.FileSet)12 BlockMgr (org.apache.jena.tdb.base.block.BlockMgr)5 Record (org.apache.jena.tdb.base.record.Record)5 RecordFactory (org.apache.jena.tdb.base.record.RecordFactory)5 ColumnMap (org.apache.jena.tdb.lib.ColumnMap)5 RangeIndex (org.apache.jena.tdb.index.RangeIndex)4 BPlusTree (org.apache.jena.tdb.index.bplustree.BPlusTree)4 BPlusTreeParams (org.apache.jena.tdb.index.bplustree.BPlusTreeParams)4 InputStream (java.io.InputStream)2 AtlasException (org.apache.jena.atlas.AtlasException)2 Location (org.apache.jena.tdb.base.file.Location)2 NodeTable (org.apache.jena.tdb.store.nodetable.NodeTable)2 TupleIndexRecord (org.apache.jena.tdb.store.tupletable.TupleIndexRecord)2 TDBException (org.apache.jena.tdb.TDBException)1 ObjectFile (org.apache.jena.tdb.base.objectfile.ObjectFile)1 IndexParams (org.apache.jena.tdb.index.IndexParams)1 StoreParams (org.apache.jena.tdb.setup.StoreParams)1 TupleIndex (org.apache.jena.tdb.store.tupletable.TupleIndex)1