gov.nih.nlm.umls.io
Class IndexBuilder

java.lang.Object
  extended bygov.nih.nlm.umls.io.IndexBuilder
Direct Known Subclasses:
SuiCountIndexBuilder

public class IndexBuilder
extends Object

Used for building an indexes for Metathesaurus files


Field Summary
protected  String dir
          location of indexes directory
 
Constructor Summary
IndexBuilder(String dir)
          Instantiates an IndexBuilder.
 
Method Summary
 void buildIndex(String file, String[] cols, FileStatistics file_stats, ProgressMonitor pm)
          Builds an index file for the given file and column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dir

protected String dir
location of indexes directory

Constructor Detail

IndexBuilder

public IndexBuilder(String dir)
Instantiates an IndexBuilder.

Parameters:
dir - directory where indexes directory should be located
Method Detail

buildIndex

public void buildIndex(String file,
                       String[] cols,
                       FileStatistics file_stats,
                       ProgressMonitor pm)
                throws Exception
Builds an index file for the given file and column.

Parameters:
file - name of file to be indexed
cols - names of columns to be indexed
file_stats - used to find column index in file
pm - ProgressMonitor for reporting indexing progress
Throws:
Exception


Copyright ©2005