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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToCache
(Collection<DiffExprGeneSearchResult> diffExForCache) void
addToCache
(DiffExprGeneSearchResult diffExForCache) void
addToTopHitsCache
(ExpressionAnalysisResultSet resultSet, List<DifferentialExpressionValueObject> items) void
void
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.get
(Long resultSet, Collection<Long> genes) getTopHits
(ExpressionAnalysisResultSet resultSet) void
setEnabled
(Boolean enabled)
-
Constructor Details
-
DifferentialExpressionResultCacheImpl
public DifferentialExpressionResultCacheImpl()
-
-
Method Details
-
addToCache
- Specified by:
addToCache
in interfaceDifferentialExpressionResultCache
-
addToCache
- Specified by:
addToCache
in interfaceDifferentialExpressionResultCache
-
clearCache
public void clearCache()- Specified by:
clearCache
in interfaceDifferentialExpressionResultCache
-
clearCache
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
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
- Specified by:
get
in interfaceDifferentialExpressionResultCache
-
get
- Specified by:
get
in interfaceDifferentialExpressionResultCache
-
isEnabled
- Specified by:
isEnabled
in interfaceDifferentialExpressionResultCache
-
setEnabled
- Specified by:
setEnabled
in interfaceDifferentialExpressionResultCache
-
addToTopHitsCache
public void addToTopHitsCache(ExpressionAnalysisResultSet resultSet, List<DifferentialExpressionValueObject> items) - Specified by:
addToTopHitsCache
in interfaceDifferentialExpressionResultCache
-
getTopHits
- 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
-