use of org.apache.jena.tdb.lib.ColumnMap in project jena by apache.
the class SetupTDB method makeTupleIndex.
public static TupleIndex makeTupleIndex(Location location, String primary, String indexOrder, String indexName, int keyLength) {
FileSet fs = new FileSet(location, indexName);
int readCacheSize = params.getBlockReadCacheSize();
int writeCacheSize = params.getBlockWriteCacheSize();
// Value part is null (zero length)
RangeIndex rIndex = SetupIndex.makeRangeIndex(location, indexName, params.getBlockSize(), keyLength, 0, readCacheSize, writeCacheSize);
TupleIndex tupleIndex = new TupleIndexRecord(primary.length(), new ColumnMap(primary, indexOrder), indexOrder, rIndex.getRecordFactory(), rIndex);
return tupleIndex;
}
use of org.apache.jena.tdb.lib.ColumnMap in project jena by apache.
the class TestTupleIndexRecord method createIndex.
@Override
protected TupleIndexRecord createIndex(String description) {
IndexParams indexParams = StoreParams.getDftStoreParams();
RangeIndex rIdx = IndexFactory.buildRangeIndex(FileSet.mem(), factory, indexParams);
ColumnMap cmap = new ColumnMap("SPO", description);
TupleIndexRecord index = new TupleIndexRecord(3, cmap, description, factory, rIdx);
return index;
}
use of org.apache.jena.tdb.lib.ColumnMap in project jena by apache.
the class TestTupleIndexRecordDirect method create.
static TupleIndexRecord create(String description) {
IndexParams indexParams = StoreParams.getDftStoreParams();
RangeIndex rIdx = IndexFactory.buildRangeIndex(FileSet.mem(), factory, indexParams);
ColumnMap cmap = new ColumnMap("SPO", description);
TupleIndexRecord index = new TupleIndexRecord(3, cmap, description, factory, rIdx);
return index;
}
Aggregations