Class ChainedEntityMapper<T extends Identifiable>
java.lang.Object
ubic.gemma.core.loader.util.mapper.ChainedEntityMapper<T>
- All Implemented Interfaces:
EntityMapper<T>
Implementation of a chain of entity mappers.
- Author:
- poirigui
-
Nested Class Summary
Nested classes/interfaces inherited from interface ubic.gemma.core.loader.util.mapper.EntityMapper
EntityMapper.MappingStatistics, EntityMapper.StatefulEntityMapper<T extends Identifiable> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(Collection<T> candidates, String identifier) Check if any of the candidates can be mapped to the identifier.booleancontainsAny(Collection<T> candidates, Collection<String> identifiers) Check if any of the candidates can be mapped to any of the identifiers.forCandidates(Collection<T> candidates) Create a stateful mapper for a set of candidates.getMappingStatistics(Collection<T> candidates, Collection<String> identifiers) Calculate mapping statistics for a set of gene identifiers and candidates.getName()Obtain the name of the mapping strategy.matchAll(Collection<T> candidates, String identifier) Match the identifier to all the candidates.matchOne(Collection<T> candidates, String identifier) Map the identifier to a single candidate.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ubic.gemma.core.loader.util.mapper.EntityMapper
matchAll, matchOne
-
Constructor Details
-
ChainedEntityMapper
-
-
Method Details
-
getName
Description copied from interface:EntityMapperObtain the name of the mapping strategy.- Specified by:
getNamein interfaceEntityMapper<T extends Identifiable>
-
forCandidates
Description copied from interface:EntityMapperCreate a stateful mapper for a set of candidates.- Specified by:
forCandidatesin interfaceEntityMapper<T extends Identifiable>
-
contains
Description copied from interface:EntityMapperCheck if any of the candidates can be mapped to the identifier.- Specified by:
containsin interfaceEntityMapper<T extends Identifiable>
-
containsAny
Description copied from interface:EntityMapperCheck if any of the candidates can be mapped to any of the identifiers.- Specified by:
containsAnyin interfaceEntityMapper<T extends Identifiable>
-
matchOne
Description copied from interface:EntityMapperMap the identifier to a single candidate.If more than one candidate matches the identifier,
Optional.empty()is returned.- Specified by:
matchOnein interfaceEntityMapper<T extends Identifiable>
-
matchAll
Description copied from interface:EntityMapperMatch the identifier to all the candidates.- Specified by:
matchAllin interfaceEntityMapper<T extends Identifiable>
-
getMappingStatistics
public EntityMapper.MappingStatistics getMappingStatistics(Collection<T> candidates, Collection<String> identifiers) Description copied from interface:EntityMapperCalculate mapping statistics for a set of gene identifiers and candidates.- Specified by:
getMappingStatisticsin interfaceEntityMapper<T extends Identifiable>
-