|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.io.RichMRFilesConceptInputStream
gov.nih.nlm.mms.cxt.MRCXTBuilderOutputStream
public class MRCXTBuilderOutputStream
Builds MRCXT.RRF from MRHIER.RRF and MRCONSO.RRF with the help of a few indexes. Manages the log.
| Field Summary |
|---|
| Fields inherited from class gov.nih.nlm.umls.io.RichMRFilesConceptInputStream |
|---|
add_suffix, atom_hm, file_names, from_rsab, from_vsab, install_paths, mrcoc_source, mrconso_counter, mrconso_lines, mrconso_source, mrcxt_source, mrdef_source, mrdoc_source, mrhier_source, mrhist_source, mrmap_source, mrrel_source, mrsat_source, mrsty_source, null_value, rel_hm, this_concept, to_rsab, to_vsab, tokens, warnings |
| Constructor Summary | |
|---|---|
MRCXTBuilderOutputStream(MRCXTBuilder mrcxt_builder)
Instantiates an empty MRCXTBuilderOutputStream. |
|
| Method Summary | |
|---|---|
protected String |
getColumnTextFromFileStatistics(FileStatistics file_stats)
Returns the MRCOLS.RRF lines for the specified FileStatistics. |
protected float |
getDecimalProgress()
Returns the percentage of the MRHIER.RRF file that has been converted and written to MRCXT.RRF. |
protected String |
getFileTextFromFileStatistics(FileStatistics file_stats)
Returns the MRFILES.RRF line for the specified FileStatistics. |
protected int |
getProgress()
Returns the percentage of the MRHIER.RRF file that has been converted and written to MRCXT.RRF. |
boolean |
isCancelled()
Indicates whether or not the license agreement was cancelled or not accepted. |
protected void |
openMRFiles()
Opens the Rich Release Format MR files. |
protected BufferedWriter |
openTargetFile(String name)
Opens the specified file in the MRCXT Builder source directory. |
protected void |
writeFileColumnStats()
This method computes the file and columns statistics for the MRFILES.RRF and MRCOLS.RRF files themselves. |
void |
writeMRCXT(ProgressMonitor pm)
Writes MRCXT.RRF Should be called from a separate thread. |
| Methods inherited from class gov.nih.nlm.umls.io.RichMRFilesConceptInputStream |
|---|
close, getAtoms, getAttributes, getComponentHistories, getConceptProgress, getContexts, getCoocurrences, getDefinitions, getLineCounts, getMappings, getNullValue, getRelationships, getSemanticTypes, getWarnings, isEmptyValue, newInstanceFromMRCONSO, newInstanceFromMRHIER, open, openSourceFile, readConcept, setAdditionalSuffix, setNullValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MRCXTBuilderOutputStream(MRCXTBuilder mrcxt_builder)
MRCXTBuilderOutputStream.
mrcxt_builder - MRCXTBuilder| Method Detail |
|---|
public void writeMRCXT(ProgressMonitor pm)
throws Exception
pm - the ProgressMonitor
Exception - if anything goes wrongpublic boolean isCancelled()
true if the GUI was cancelled, false
otherwiseprotected int getProgress()
int percentageprotected float getDecimalProgress()
float percentage
protected void openMRFiles()
throws IOException
openMRFiles in class RichMRFilesConceptInputStreamIOException - if any files cannot be opened
protected void writeFileColumnStats()
throws IOException
MRFILES.RRF and MRCOLS.RRF files themselves.
Should it be using "\n"?
IOException - if anything goes wrongprotected String getFileTextFromFileStatistics(FileStatistics file_stats)
MRFILES.RRF line for the specified FileStatistics.
file_stats - the FileStatistics
MRFILES.RRF line for the specified FileStatisticsprotected String getColumnTextFromFileStatistics(FileStatistics file_stats)
MRCOLS.RRF lines for the specified FileStatistics.
file_stats - the FileStatistics
MRCOLS.RRF lines for the specified FileStatistics
protected BufferedWriter openTargetFile(String name)
throws IOException
name - the filename
BufferedWriter for the file
IOException - if the file could not be opened.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||