Class AbstractBioAssayMapper
java.lang.Object
ubic.gemma.core.loader.util.mapper.AbstractBioAssayMapper
- All Implemented Interfaces:
BioAssayMapper,EntityMapper<BioAssay>
- Direct Known Subclasses:
GeoBioAssayMapper,SimpleBioAssayMapper
-
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<BioAssay> candidates, String identifier) Check if any of the candidates can be mapped to the identifier.booleancontainsAny(Collection<BioAssay> candidates, Collection<String> identifiers) Check if any of the candidates can be mapped to any of the identifiers.forCandidates(Collection<BioAssay> candidates) Create a stateful mapper for a set of candidates.matchAll(Collection<BioAssay> candidates, String identifier) Match the identifier to all the candidates.matchAll(Collection<BioAssay> candidates, Collection<String> identifiers) Match each identifier to all the candidates.matchAllInternal(Collection<BioAssay> candidates, String identifier) protected booleanprotected booleanprotected booleanprotected booleanmatchNameIgnoreCase(String a, String b) matchOne(Collection<BioAssay> candidates, String identifier) Map the identifier to a single candidate.matchOne(Collection<BioAssay> candidates, Collection<String> identifiers) Match each identifier to a single candidate.protected <T> booleanmatchWithFunction(Collection<BioAssay> bas, Function<BioAssay, T> extractor, BiFunction<T, String, Boolean> func, String sampleName, Collection<BioAssay> results) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ubic.gemma.core.loader.util.mapper.BioAssayMapper
forCandidatesMethods inherited from interface ubic.gemma.core.loader.util.mapper.EntityMapper
getMappingStatistics, getName
-
Constructor Details
-
AbstractBioAssayMapper
public AbstractBioAssayMapper()
-
-
Method Details
-
forCandidates
Description copied from interface:EntityMapperCreate a stateful mapper for a set of candidates.- Specified by:
forCandidatesin interfaceEntityMapper<BioAssay>
-
contains
Description copied from interface:EntityMapperCheck if any of the candidates can be mapped to the identifier.- Specified by:
containsin interfaceEntityMapper<BioAssay>
-
containsAny
Description copied from interface:EntityMapperCheck if any of the candidates can be mapped to any of the identifiers.- Specified by:
containsAnyin interfaceEntityMapper<BioAssay>
-
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<BioAssay>
-
matchOne
public Map<String,BioAssay> matchOne(Collection<BioAssay> candidates, Collection<String> identifiers) Description copied from interface:EntityMapperMatch each identifier to a single candidate.- Specified by:
matchOnein interfaceEntityMapper<BioAssay>
-
matchAll
Description copied from interface:EntityMapperMatch the identifier to all the candidates.- Specified by:
matchAllin interfaceEntityMapper<BioAssay>
-
matchAll
public Map<String,Set<BioAssay>> matchAll(Collection<BioAssay> candidates, Collection<String> identifiers) Description copied from interface:EntityMapperMatch each identifier to all the candidates.- Specified by:
matchAllin interfaceEntityMapper<BioAssay>
-
toString
-
matchAllInternal
protected abstract Set<BioAssay> matchAllInternal(Collection<BioAssay> candidates, String identifier) -
matchWithFunction
protected <T> boolean matchWithFunction(Collection<BioAssay> bas, Function<BioAssay, T> extractor, BiFunction<T, String, Boolean> func, String sampleName, Collection<BioAssay> results) -
matchId
-
matchName
-
matchNameIgnoreCase
-
matchDescriptionIgnoreCase
-