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) voidaddToResultSetCountsCache(Long resultSetId, ResultSetCountsValueObject counts) Populate the per-result-set hit-list counts cache.voidaddToTopHitsCache(ExpressionAnalysisResultSet resultSet, List<DifferentialExpressionValueObject> items) voidvoidvoidclearCache(Long resultSetId) Remove all elements from the cache for the given result set, if the cache exists.voidclearResultSetCountsCache(Long resultSetId) Evict a single result-set entry from the counts cache (called on analysis deletion).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) getResultSetCounts(Long resultSetId) Retrieve cached per-result-set hit-list counts (the inputs toDiffExResultSetSummaryValueObject's numberOfDiffExpressedProbes / up / down counts).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
@Nullable public List<DifferentialExpressionValueObject> getTopHits(ExpressionAnalysisResultSet resultSet) - Specified by:
getTopHitsin interfaceDifferentialExpressionResultCache- Parameters:
resultSet- result set- Returns:
- top hits, or null.
-
getResultSetCounts
Description copied from interface:DifferentialExpressionResultCacheRetrieve cached per-result-set hit-list counts (the inputs toDiffExResultSetSummaryValueObject's numberOfDiffExpressedProbes / up / down counts).- Specified by:
getResultSetCountsin interfaceDifferentialExpressionResultCache- Parameters:
resultSetId- id- Returns:
- counts VO, or null on miss.
-
addToResultSetCountsCache
Description copied from interface:DifferentialExpressionResultCachePopulate the per-result-set hit-list counts cache.- Specified by:
addToResultSetCountsCachein interfaceDifferentialExpressionResultCache
-
clearResultSetCountsCache
Description copied from interface:DifferentialExpressionResultCacheEvict a single result-set entry from the counts cache (called on analysis deletion).- Specified by:
clearResultSetCountsCachein interfaceDifferentialExpressionResultCache
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-