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 TypeMethodDescriptionvoidaddToCache(Collection<DiffExprGeneSearchResult> diffExForCache) voidaddToCache(DiffExprGeneSearchResult diffExForCache) voidaddToTopHitsCache(ExpressionAnalysisResultSet resultSet, List<DifferentialExpressionValueObject> items) voidvoidvoidclearCache(Long resultSetId) Remove all elements from the cache for the given result set, if the cache exists.voidclearTopHitCache(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) voidsetEnabled(Boolean enabled)
-
Constructor Details
-
DifferentialExpressionResultCacheImpl
public DifferentialExpressionResultCacheImpl()
-
-
Method Details
-
addToCache
- Specified by:
addToCachein interfaceDifferentialExpressionResultCache
-
addToCache
- Specified by:
addToCachein interfaceDifferentialExpressionResultCache
-
clearCache
public void clearCache()- Specified by:
clearCachein interfaceDifferentialExpressionResultCache
-
clearCache
Description copied from interface:DifferentialExpressionResultCacheRemove all elements from the cache for the given result set, if the cache exists.- Specified by:
clearCachein interfaceDifferentialExpressionResultCache- Parameters:
resultSetId- - specific cache to be cleared.
-
clearTopHitCache
Description copied from interface:DifferentialExpressionResultCacheRemove all elements from the top hits cache for the given result set, if the cache exists.- Specified by:
clearTopHitCachein interfaceDifferentialExpressionResultCache- Parameters:
resultSetId- id
-
get
- Specified by:
getin interfaceDifferentialExpressionResultCache
-
get
- Specified by:
getin interfaceDifferentialExpressionResultCache
-
isEnabled
- Specified by:
isEnabledin interfaceDifferentialExpressionResultCache
-
setEnabled
- Specified by:
setEnabledin interfaceDifferentialExpressionResultCache
-
addToTopHitsCache
public void addToTopHitsCache(ExpressionAnalysisResultSet resultSet, List<DifferentialExpressionValueObject> items) - Specified by:
addToTopHitsCachein interfaceDifferentialExpressionResultCache
-
getTopHits
- Specified by:
getTopHitsin interfaceDifferentialExpressionResultCache- Parameters:
resultSet- result set- Returns:
- top hits, or null.
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-