private DatasetPrefixesTDB(IndexBuilder indexBuilder, Location location, DatasetControl policy)
{
// TO BE REMOVED when DI sorted out.
// This is a table "G" "P" "U" (Graph, Prefix, URI), indexed on GPU only.
// GPU index
FileSet filesetGPU = null ;
if ( location != null )
filesetGPU = new FileSet(location, Names.indexPrefix) ;
TupleIndex index = new TupleIndexRecord(3, colMap, Names.primaryIndexPrefix, factory, indexBuilder.newRangeIndex(filesetGPU, factory)) ;
TupleIndex[] indexes = { index } ;
// Node table.
FileSet filesetNodeTableIdx = null ;
if ( location != null )
filesetNodeTableIdx = new FileSet(location, Names.prefixNode2Id) ;
FileSet filesetNodeTable = null ;
if ( location != null )
filesetNodeTable = new FileSet(location, Names.prefixId2Node) ;
NodeTable nodes = NodeTableFactory.create(indexBuilder, filesetNodeTable, filesetNodeTableIdx, -1, -1, -1) ;
nodeTupleTable = new NodeTupleTableConcrete(3, indexes, nodes, policy) ;
}