Package org.genesys.taxonomy.checker
Class CachingInMemoryTaxonomyDatabase
java.lang.Object
org.genesys.taxonomy.checker.InMemoryTaxonomyDatabase
org.genesys.taxonomy.checker.CachingInMemoryTaxonomyDatabase
- All Implemented Interfaces:
TaxonomyDatabase
Guava cache supported in-memory taxonomy database.
-
Field Summary
Fields inherited from class org.genesys.taxonomy.checker.InMemoryTaxonomyDatabase
NONMATCH_MARGIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindSimilarGenus(String genus, int maxSize) Find similar genus.findSimilarSpecies(String genus, String species, String spAuthor, int maxSize) Find similar species.protected List<org.genesys.taxonomy.gringlobal.model.IGrinSpecies>getAllGenusSpecies(String genus) Gets the all genus species.Methods inherited from class org.genesys.taxonomy.checker.InMemoryTaxonomyDatabase
containsGenus, containsSpecies, containsSpecies, containsSubtaxa, containsSubtaxa, findSimilar, findSimilarGenera, findSimilarSubtaxa, findSimilarSubtaxa, findSpeciesRow, findSpeciesRows, findTaxa, getAllGenusSpecies, getGenus, getSpeciesAuthority, getSpeciesAuthority, getSpeciesRow, getSubtaxaAuthority, getSubtaxaAuthority, getTaxon, listSpecies, print, print, registerGenus, registerSpecies, similarityScore, toString
-
Constructor Details
-
CachingInMemoryTaxonomyDatabase
public CachingInMemoryTaxonomyDatabase()
-
-
Method Details
-
getAllGenusSpecies
Gets the all genus species.- Overrides:
getAllGenusSpeciesin classInMemoryTaxonomyDatabase- Parameters:
genus- the genus- Returns:
- the all genus species
-
findSimilarGenus
Find similar genus.- Specified by:
findSimilarGenusin interfaceTaxonomyDatabase- Overrides:
findSimilarGenusin classInMemoryTaxonomyDatabase- Parameters:
genus- the genusmaxSize- the max size- Returns:
- the list
-
findSimilarSpecies
Find similar species.- Specified by:
findSimilarSpeciesin interfaceTaxonomyDatabase- Overrides:
findSimilarSpeciesin classInMemoryTaxonomyDatabase- Parameters:
genus- the genusspecies- the speciesmaxSize- the max sizespAuthor- species authority- Returns:
- the list
-