Class TaxonParser
- java.lang.Object
-
- ubic.gemma.core.loader.util.parser.BasicLineMapParser<Integer,Taxon>
-
- ubic.gemma.core.loader.genome.taxon.TaxonParser
-
- All Implemented Interfaces:
LineParser<Taxon>,Parser<Taxon>
public class TaxonParser extends BasicLineMapParser<Integer,Taxon>
Parse the "names.dmp" file from NCBI, ftp://ftp.ncbi.nih.gov/pub/taxonomy/.- Author:
- pavlidis
-
-
Field Summary
-
Fields inherited from class ubic.gemma.core.loader.util.parser.BasicLineMapParser
COMMENT_MARK, log
-
Fields inherited from interface ubic.gemma.core.loader.util.parser.LineParser
MIN_PARSED_LINES_FOR_UPDATE, PARSE_ALERT_TIME_FREQUENCY_MS
-
Fields inherited from interface ubic.gemma.core.loader.util.parser.Parser
PARSE_ALERT_FREQUENCY
-
-
Constructor Summary
Constructors Constructor Description TaxonParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(Integer key)Taxonget(Integer key)protected IntegergetKey(Taxon newItem)Collection<Integer>getKeySet()Collection<Taxon>getResults()TaxonparseOneLine(String line)Handle the parsing of a single line from the input.protected voidput(Integer key, Taxon value)-
Methods inherited from class ubic.gemma.core.loader.util.parser.BasicLineMapParser
parse, parse, parse
-
-
-
-
Method Detail
-
containsKey
public boolean containsKey(Integer key)
- Specified by:
containsKeyin classBasicLineMapParser<Integer,Taxon>
-
getKeySet
public Collection<Integer> getKeySet()
- Specified by:
getKeySetin classBasicLineMapParser<Integer,Taxon>
-
getResults
public Collection<Taxon> getResults()
- Specified by:
getResultsin interfaceParser<Taxon>- Specified by:
getResultsin classBasicLineMapParser<Integer,Taxon>- Returns:
- the results of the parse.
-
parseOneLine
public Taxon parseOneLine(String line)
Description copied from interface:LineParserHandle the parsing of a single line from the input.- Specified by:
parseOneLinein interfaceLineParser<Taxon>- Specified by:
parseOneLinein classBasicLineMapParser<Integer,Taxon>- Parameters:
line- line to parse- Returns:
- parsed object
-
getKey
protected Integer getKey(Taxon newItem)
- Specified by:
getKeyin classBasicLineMapParser<Integer,Taxon>
-
-