Class MapBasedEntityMapper<T extends Identifiable>
java.lang.Object
ubic.gemma.core.loader.util.mapper.MapBasedEntityMapper<T>
- All Implemented Interfaces:
EntityMapper<T>
- Direct Known Subclasses:
CellIdOverlapBioAssayMapper,MapBasedDesignElementMapper
A simple implementation of
EntityMapper that uses a Map to store association between identifiers and
entities.- 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 TypeMethodDescriptionforCandidates(Collection<T> candidates) Create a stateful mapper for a set of candidates.getName()Obtain the name of the mapping strategy.protected StringprocessIdentifier(String identifier) Process the identifier before using it to query the mapping.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
contains, containsAny, getMappingStatistics, matchAll, matchAll, matchOne, matchOne
-
Constructor Details
-
MapBasedEntityMapper
-
-
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>
-
processIdentifier
Process the identifier before using it to query the mapping.
-