Class InMemoryTaxonomyService
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.service.impl.InMemoryTaxonomyService
-
- All Implemented Interfaces:
TaxonomyService
public class InMemoryTaxonomyService extends java.lang.Object implements TaxonomyService
ATaxonomyService
leveraging Apache Jena's in memory storage service and Apache Lucene's text searching abilities.
-
-
Constructor Summary
Constructors Constructor Description InMemoryTaxonomyService(java.nio.file.Path taxonomyFileLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<TreeNode<java.lang.String>>
search(java.lang.String searchTerm)
Search for a tree of taxonomy terms with a given search term
-
-
-
Method Detail
-
search
public java.util.Collection<TreeNode<java.lang.String>> search(java.lang.String searchTerm)
Search for a tree of taxonomy terms with a given search term- Specified by:
search
in interfaceTaxonomyService
- Parameters:
searchTerm
- The term to search- Returns:
- a List of
TreeNode
s with the requested search term
-
-