@Override
public NodeTable buildNodeTable(FileSet fsIndex, FileSet fsObjectFile, int sizeNode2NodeIdCache,
int sizeNodeId2NodeCache, int sizeNodeMissCacheSize)
{
FileRef ref = FileRef.create(fsObjectFile.filename(Names.extNodeData)) ;
NodeTable ntBase = nodeTables.get(ref) ;
if ( ntBase == null )
throw new TDBException("No NodeTable for "+ref) ;
RecordFactory recordFactory = new RecordFactory(SystemTDB.LenNodeHash, SystemTDB.SizeOfNodeId) ;
Index idx = new IndexMap(recordFactory) ;
String objFilename = fsObjectFile.filename(Names.extNodeData+"-"+Names.extJournal) ;
ObjectFile objectFile ;
if ( fsObjectFile.isMem() )
objectFile = FileFactory.createObjectFileMem(objFilename) ;
else
objectFile = FileFactory.createObjectFileDisk(objFilename) ;
NodeTableTrans ntt = new NodeTableTrans(txn ,fsObjectFile.getBasename(), ntBase, idx, objectFile) ;
txn.addComponent(ntt) ;
// Add inline wrapper.
NodeTable nt = NodeTableInline.create(ntt) ;
return nt ;
}