|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface BrowsableInputStream
Interface to separate knowledge of the input format from the retrieval of
objects in the object model, allowing various different data formats to be
loaded into the browser. Use this interface instead of
UserConfiguration or
ApplicationConfiguration references.
| Method Summary | |
|---|---|
void |
buildIndexes(ProgressMonitor pm)
Builds the indexes in the BrowsableInputStream. |
boolean |
buildIndexesNeeded()
Indicates if indexes in the BrowsableInputStream need to be built. |
void |
close()
Closes the BrowsableInputStream. |
boolean |
containsConcept(String cui)
Indicates if the BrowsableInputStream
contains the concept specified by the CUI. |
int |
countChildren(Context context)
Returns the number of children for the given Context. |
int |
countSiblings(Context context)
Returns the number of siblings for the given Context. |
boolean |
directoryContainsExpectedData()
Indicates if directory of BrowsableInputStream contains the
expected data for its type. |
Atom[] |
findAtomsByCodeSab(String code,
Set sources)
Looks up the given code in the CODE_SAB_MRCONSO.x index file and returns the Atom[] of Atoms that have the given code and that are in
any of the given Sources. |
Context[] |
findChildren(Context context,
SearchOptions options)
Returns a Context[] of children for the given context. |
Context[] |
findSiblings(Context context,
SearchOptions options)
Returns a Context[] of siblings for the given context. |
Set |
findWordMatches(String word,
Language language)
Finds WordSearchResults of Concepts with Strings
containing the specified word. |
Color |
getColor()
Returns the name of the color associated with this input format. |
String |
getDirectory()
Gets directory of BrowsableInputStream. |
String |
getName()
Returns the name of the Input Format. |
List |
getPrecedenceOrder()
Returns a list of SourceTermTypes |
String[] |
getPreexpandedRawFiles()
Returns list of file names that should be preexpanded to show user initial content when concepts are first opened in browser. |
Map |
getRawConceptWithLinks(String cui,
LinkGenerator link_gen)
Returns a Map that has concept data filename
String objects as keys and have String[] values
which are the lines in the file matching the specified CUI. |
Map |
getRawHistoryData(String cui)
Returns a Map that has history filename
String objects as keys and have String[] values
which are the lines of the file that are relevant to the query. |
Map |
getRawMetadata()
Returns a Map that has metadata filename String
objects as keys and have String[] values which are the lines
of the file that are relevant to the query. |
String |
getReleaseVersion()
Returns the release version |
List |
getSourceList()
Returns a list of Sources |
int |
getWordFrequency(String word,
Language language)
Gets number of strings in which a word appears. |
boolean |
hasChildren(Context context)
Indicates if given Context has children. |
boolean |
hasSiblings(Context context)
Indicates if the given Context has siblings. |
void |
initializeMetadata()
Initializes metadata. |
void |
open()
Opens the BrowsableInputStream. |
Atom |
readAtom(String aui,
AtomDataSelector selector)
Looks up the given AUI in the index file and returns the Atom that contains the given AUI. |
Concept |
readConcept(String cui,
ConceptDataSelector selector)
Populates a Concept with the amount of
information specified by a ConceptDataSelector. |
ReleaseMetadata |
readReleaseMetadata()
Returns the ReleaseMetadata containing data from the
BrowsableInputStream files. |
void |
setDirectory(String newDirectory)
Sets directory of BrowsableInputStream. |
| Methods inherited from interface gov.nih.nlm.util.LocalNullValueSupport |
|---|
getNullValue, isEmptyValue, setNullValue |
| Method Detail |
|---|
String getDirectory()
BrowsableInputStream.
BrowsableInputStream.void setDirectory(String newDirectory)
BrowsableInputStream.
newDirectory - directory of BrowsableInputStreamboolean directoryContainsExpectedData()
BrowsableInputStream contains the
expected data for its type.
true if the directory set by
setDirectory(String) contains the expected data, otherwise
false.
void open()
throws IOException
BrowsableInputStream.
IOException - if there is a problem opening the
BrowsableInputStream.
void close()
throws IOException
BrowsableInputStream.
IOException - if there is a problem closing the
BrowsableInputStream.
void initializeMetadata()
throws IOException
IOException
ReleaseMetadata readReleaseMetadata()
throws IOException
ReleaseMetadata containing data from the
BrowsableInputStream files.
ReleaseMetadata
IOException - if the files could not be read.boolean buildIndexesNeeded()
BrowsableInputStream need to be built.
true if indexes needed to be built; false
otherwise.
void buildIndexes(ProgressMonitor pm)
throws IOException
BrowsableInputStream.
pm - ProgressMonitor for displaying progress of the operation
IOExceptionList getPrecedenceOrder()
SourceTermTypes
ListList getSourceList()
Sources
ListString getName()
Color getColor()
String getReleaseVersion()
Concept readConcept(String cui,
ConceptDataSelector selector)
throws IOException
Concept with the amount of
information specified by a ConceptDataSelector.
cui - CUI (concept unique identifier) of the Concept desiredselector - ConceptDataSelector
Concept according to the specified
ConceptDataSelector.
IOException
Atom readAtom(String aui,
AtomDataSelector selector)
throws IOException
Atom that contains the given AUI.
aui - AUI to be searched forselector - AtomDataSelector specifying
how to populate the Atom
Atom containing the AUI, populated according to the
AtomDataSelector.
IOException
Map getRawConceptWithLinks(String cui,
LinkGenerator link_gen)
throws IOException
Map that has concept data filename
String objects as keys and have String[] values
which are the lines in the file matching the specified CUI.
cui - UMLS CUIlink_gen - link generator
Map from each input stream file name to an array of the
lines in that file matching the specified CUI.
IOException
Map getRawHistoryData(String cui)
throws IOException
Map that has history filename
String objects as keys and have String[] values
which are the lines of the file that are relevant to the query.
cui - UMLS CUI
Map that has history filename String objects
as keys and have String[] values which are the lines of the
file that are relevant to the query.
IOException
Map getRawMetadata()
throws IOException
Map that has metadata filename String
objects as keys and have String[] values which are the lines
of the file that are relevant to the query.
Map that has metadata filename String
objects as keys and have String[] values which are the lines
of the file that are relevant to the query.
IOException
boolean containsConcept(String cui)
throws IOException
BrowsableInputStream
contains the concept specified by the CUI.
cui - CUI of the concept in question
true if the data set contains the concept specified by
the CUI.
IOException
int countSiblings(Context context)
throws IOException
Context.
context -
IOException
boolean hasSiblings(Context context)
throws IOException
Context has siblings.
context -
true if context has siblings
false otherwise
IOException
Context[] findSiblings(Context context,
SearchOptions options)
throws IOException
Context[] of siblings for the given context.
context - options - SearchOptions specify parameters
IOException
int countChildren(Context context)
throws IOException
Context.
context -
IOException
boolean hasChildren(Context context)
throws IOException
Context has children.
context -
true if context has children
false otherwise
IOException
Context[] findChildren(Context context,
SearchOptions options)
throws IOException
Context[] of children for the given context.
context - options - SearchOptions specify parameters
IOException
Set findWordMatches(String word,
Language language)
throws IOException,
InterruptedException
WordSearchResults of Concepts with Strings
containing the specified word.
word - search word or partial search word with wild card '*' at endlanguage - Language of strings to be found
Set of WordSearchResults consisting of matches on
the specified word.
IOException
InterruptedException
int getWordFrequency(String word,
Language language)
throws IOException
word - word or partial word followed by a wild card character '*'.language - Language of strings to search
IOException
Atom[] findAtomsByCodeSab(String code,
Set sources)
throws IOException
Atom[] of Atoms that have the given code and that are in
any of the given Sources.
code - to be searched forsources - that returned Atoms may belong to
Atom[] of Atoms with the given code and in one of the given sources
IOExceptionString[] getPreexpandedRawFiles()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||