Interface DifferentialExpressionResultCache
- All Known Implementing Classes:
DifferentialExpressionResultCacheImpl
public interface DifferentialExpressionResultCache
Cache for differential expression results. This actually manages two caches; one is for resultset x gene results,
requested for the (typically) main visualization and meta-analysis. The second is of the "top hits" for a resultset.
- Author:
- paul
-
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) voidvoidclearCache(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)
-
Method Details
-
addToCache
-
addToCache
-
clearCache
void clearCache() -
clearCache
Remove all elements from the cache for the given result set, if the cache exists.- Parameters:
resultSetId- - specific cache to be cleared.
-
clearTopHitCache
Remove all elements from the top hits cache for the given result set, if the cache exists.- Parameters:
resultSetId- id
-
get
-
get
-
isEnabled
Boolean isEnabled() -
setEnabled
-
addToTopHitsCache
void addToTopHitsCache(ExpressionAnalysisResultSet resultSet, List<DifferentialExpressionValueObject> items) -
getTopHits
- Parameters:
resultSet- result set- Returns:
- top hits, or null.
-
getResultSetCounts
Retrieve cached per-result-set hit-list counts (the inputs toDiffExResultSetSummaryValueObject's numberOfDiffExpressedProbes / up / down counts).- Parameters:
resultSetId- id- Returns:
- counts VO, or null on miss.
-
addToResultSetCountsCache
Populate the per-result-set hit-list counts cache. -
clearResultSetCountsCache
Evict a single result-set entry from the counts cache (called on analysis deletion).
-