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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addToCache(Collection<DiffExprGeneSearchResult> diffExForCache)
void
addToCache(DiffExprGeneSearchResult diffExForCache)
void
addToTopHitsCache(ExpressionAnalysisResultSet resultSet, List<DifferentialExpressionValueObject> items)
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
void addToCache(DiffExprGeneSearchResult diffExForCache)
-
addToCache
void addToCache(Collection<DiffExprGeneSearchResult> diffExForCache)
-
clearCache
void clearCache()
-
clearCache
void clearCache(Long resultSetId)
Remove all elements from the cache for the given result set, if the cache exists.- Parameters:
resultSetId
- - specific cache to be cleared.
-
clearTopHitCache
void clearTopHitCache(Long resultSetId)
Remove all elements from the top hits cache for the given result set, if the cache exists.- Parameters:
resultSetId
- id
-
get
Collection<DiffExprGeneSearchResult> get(Long resultSet, Collection<Long> genes)
-
get
DiffExprGeneSearchResult get(Long resultSet, Long g)
-
isEnabled
Boolean isEnabled()
-
setEnabled
void setEnabled(Boolean enabled)
-
addToTopHitsCache
void addToTopHitsCache(ExpressionAnalysisResultSet resultSet, List<DifferentialExpressionValueObject> items)
-
getTopHits
List<DifferentialExpressionValueObject> getTopHits(ExpressionAnalysisResultSet resultSet)
- Parameters:
resultSet
- result set- Returns:
- top hits, or null.
-
-