gov.nih.nlm.umls.io
Class IndexBuilder
java.lang.Object
gov.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dir
protected String dir
- location of indexes directory
IndexBuilder
public IndexBuilder(String dir)
- Instantiates an
IndexBuilder
.
- Parameters:
dir
- directory where indexes directory should be located
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 indexedcols
- names of columns to be indexedfile_stats
- used to find column index in filepm
- ProgressMonitor
for reporting indexing progress
- Throws:
Exception
Copyright ©2005