public interface IDMapper
| Modifier and Type | Method and Description |
|---|---|
void |
close()
dispose any resources (such as open database connections) associated
with this IDMapper.
|
Set<Xref> |
freeSearch(String text,
int limit)
free text search for matching symbols or identifiers.
|
IDMapperCapabilities |
getCapabilities() |
boolean |
isConnected()
Use this method to check if the IDMapper is still valid.
|
Map<Xref,Set<Xref>> |
mapID(Collection<Xref> srcXrefs,
DataSource... tgtDataSources)
Get all cross-references for a set of entities, restricting the
result to contain only references from the given set of data sources.
|
Set<Xref> |
mapID(Xref ref,
DataSource... tgtDataSources)
Get all cross-references for the given entity, restricting the
result to contain only references from the given set of data sources.
|
boolean |
xrefExists(Xref xref)
Check whether an Xref is known by the given mapping source.
|
Map<Xref,Set<Xref>> mapID(Collection<Xref> srcXrefs, DataSource... tgtDataSources) throws IDMapperException
srcXrefs - source Xref, containing ID and ID type/data sourcetgtDataSources - target ID types/data sources. Set this to null
if you want to retrieve all results.IDMapperException - if the mapping service is (temporarily) unavailableSet<Xref> mapID(Xref ref, DataSource... tgtDataSources) throws IDMapperException
ref - the entity to get cross-references for.tgtDataSources - target ID types/data sources. Set this to null if you
want to retrieve all results.IDMapperException - if the mapping service is (temporarily) unavailableboolean xrefExists(Xref xref) throws IDMapperException
xref - reference to checkIDMapperException - if failed, UnsupportedOperationException if it's not supported by the Driver.Set<Xref> freeSearch(String text, int limit) throws IDMapperException
text - text to searchlimit - up limit of number of hitsIDMapperException - if failedIDMapperCapabilities getCapabilities()
void close()
throws IDMapperException
IDMapperException - if the associated resources could not be freed.boolean isConnected()
Copyright © 2006–2021 BridgeDb project. All rights reserved.