Class DifferentialExpressionResultCacheImpl
- java.lang.Object
-
- ubic.gemma.persistence.service.analysis.expression.diff.DifferentialExpressionResultCacheImpl
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,DifferentialExpressionResultCache
@Component public class DifferentialExpressionResultCacheImpl extends Object implements DifferentialExpressionResultCache, org.springframework.beans.factory.InitializingBean
Cache for data from differential expression result queries.- Author:
- Paul
-
-
Constructor Summary
Constructors Constructor Description DifferentialExpressionResultCacheImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToCache(Collection<DiffExprGeneSearchResult> diffExForCache)
void
addToCache(DiffExprGeneSearchResult diffExForCache)
void
addToTopHitsCache(ExpressionAnalysisResultSet resultSet, List<DifferentialExpressionValueObject> items)
void
afterPropertiesSet()
void
clearCache()
void
clearCache(Long resultSetId)
Remove all elements from the cache for the given result set, if the cache exists.void
clearTopHitCache(Long resultSetId)
Remove all elements from the top hits cache for the given result set, if the cache exists.DiffExprGeneSearchResult
get(Long resultSet, Long g)
Collection<DiffExprGeneSearchResult>
get(Long resultSet, Collection<Long> genes)
List<DifferentialExpressionValueObject>
getTopHits(ExpressionAnalysisResultSet resultSet)
Boolean
isEnabled()
void
setEnabled(Boolean enabled)
-
-
-
Method Detail
-
addToCache
public void addToCache(DiffExprGeneSearchResult diffExForCache)
- Specified by:
addToCache
in interfaceDifferentialExpressionResultCache
-
addToCache
public void addToCache(Collection<DiffExprGeneSearchResult> diffExForCache)
- Specified by:
addToCache
in interfaceDifferentialExpressionResultCache
-
clearCache
public void clearCache()
- Specified by:
clearCache
in interfaceDifferentialExpressionResultCache
-
clearCache
public void clearCache(Long resultSetId)
Description copied from interface:DifferentialExpressionResultCache
Remove all elements from the cache for the given result set, if the cache exists.- Specified by:
clearCache
in interfaceDifferentialExpressionResultCache
- Parameters:
resultSetId
- - specific cache to be cleared.
-
clearTopHitCache
public void clearTopHitCache(Long resultSetId)
Description copied from interface:DifferentialExpressionResultCache
Remove all elements from the top hits cache for the given result set, if the cache exists.- Specified by:
clearTopHitCache
in interfaceDifferentialExpressionResultCache
- Parameters:
resultSetId
- id
-
get
public Collection<DiffExprGeneSearchResult> get(Long resultSet, Collection<Long> genes)
- Specified by:
get
in interfaceDifferentialExpressionResultCache
-
get
public DiffExprGeneSearchResult get(Long resultSet, Long g)
- Specified by:
get
in interfaceDifferentialExpressionResultCache
-
isEnabled
public Boolean isEnabled()
- Specified by:
isEnabled
in interfaceDifferentialExpressionResultCache
-
setEnabled
public void setEnabled(Boolean enabled)
- Specified by:
setEnabled
in interfaceDifferentialExpressionResultCache
-
addToTopHitsCache
public void addToTopHitsCache(ExpressionAnalysisResultSet resultSet, List<DifferentialExpressionValueObject> items)
- Specified by:
addToTopHitsCache
in interfaceDifferentialExpressionResultCache
-
getTopHits
public List<DifferentialExpressionValueObject> getTopHits(ExpressionAnalysisResultSet resultSet)
- Specified by:
getTopHits
in interfaceDifferentialExpressionResultCache
- Parameters:
resultSet
- result set- Returns:
- top hits, or null.
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
-