Interface EntityMapper.StatefulEntityMapper<T extends Identifiable>
-
- Enclosing interface:
- EntityMapper<T extends Identifiable>
public static interface EntityMapper.StatefulEntityMapper<T extends Identifiable>
A stateful entity mapper keeps an internal state for a set of candidates to optimize the mapping process.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
contains(String identifier)
Check if any of the candidates can be mapped to the identifier.boolean
containsAny(Collection<String> identifiers)
Check if any of the candidates can be mapped to any of the identifiers.EntityMapper.MappingStatistics
getMappingStatistics(Collection<String> identifiers)
Calculate mapping statistics for a set of gene identifiers.String
getName()
Set<T>
matchAll(String identifier)
Match the identifier to all the matching candidates.Map<String,Set<T>>
matchAll(Collection<String> identifiers)
Map each identifier to all the matching candidate.Optional<T>
matchOne(String identifier)
Map the identifier to a matching candidate.Map<String,T>
matchOne(Collection<String> identifiers)
Map each identifier to a matching candidate.
-
-
-
Method Detail
-
getName
String getName()
-
contains
boolean contains(String identifier)
Check if any of the candidates can be mapped to the identifier.
-
containsAny
boolean containsAny(Collection<String> identifiers)
Check if any of the candidates can be mapped to any of the identifiers.
-
matchOne
Map<String,T> matchOne(Collection<String> identifiers)
Map each identifier to a matching candidate.
-
matchAll
Map<String,Set<T>> matchAll(Collection<String> identifiers)
Map each identifier to all the matching candidate.
-
getMappingStatistics
EntityMapper.MappingStatistics getMappingStatistics(Collection<String> identifiers)
Calculate mapping statistics for a set of gene identifiers.
-
-