Class DifferentialExpressionResultCacheImpl
- java.lang.Object
-
- ubic.gemma.persistence.service.analysis.expression.diff.DifferentialExpressionResultCacheImpl
-
- All Implemented Interfaces:
InitializingBean,DifferentialExpressionResultCache
@Component public class DifferentialExpressionResultCacheImpl extends Object implements DifferentialExpressionResultCache, InitializingBean
Cache for data from differential expression result queries.- Author:
- Paul
-
-
Constructor Summary
Constructors Constructor Description DifferentialExpressionResultCacheImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToCache(Collection<DiffExprGeneSearchResult> diffExForCache)voidaddToCache(DiffExprGeneSearchResult diffExForCache)voidaddToTopHitsCache(ExpressionAnalysisResultSet resultSet, List<DifferentialExpressionValueObject> items)voidafterPropertiesSet()voidclearCache()voidclearCache(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.DiffExprGeneSearchResultget(Long resultSet, Long g)Collection<DiffExprGeneSearchResult>get(Long resultSet, Collection<Long> genes)List<DifferentialExpressionValueObject>getTopHits(ExpressionAnalysisResultSet resultSet)BooleanisEnabled()voidsetEnabled(Boolean enabled)
-
-
-
Method Detail
-
addToCache
public void addToCache(DiffExprGeneSearchResult diffExForCache)
- Specified by:
addToCachein interfaceDifferentialExpressionResultCache
-
addToCache
public void addToCache(Collection<DiffExprGeneSearchResult> diffExForCache)
- Specified by:
addToCachein interfaceDifferentialExpressionResultCache
-
clearCache
public void clearCache()
- Specified by:
clearCachein interfaceDifferentialExpressionResultCache
-
clearCache
public void clearCache(Long resultSetId)
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
public void clearTopHitCache(Long resultSetId)
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
public Collection<DiffExprGeneSearchResult> get(Long resultSet, Collection<Long> genes)
- Specified by:
getin interfaceDifferentialExpressionResultCache
-
get
public DiffExprGeneSearchResult get(Long resultSet, Long g)
- Specified by:
getin interfaceDifferentialExpressionResultCache
-
isEnabled
public Boolean isEnabled()
- Specified by:
isEnabledin interfaceDifferentialExpressionResultCache
-
setEnabled
public void setEnabled(Boolean enabled)
- Specified by:
setEnabledin interfaceDifferentialExpressionResultCache
-
addToTopHitsCache
public void addToTopHitsCache(ExpressionAnalysisResultSet resultSet, List<DifferentialExpressionValueObject> items)
- Specified by:
addToTopHitsCachein interfaceDifferentialExpressionResultCache
-
getTopHits
public List<DifferentialExpressionValueObject> getTopHits(ExpressionAnalysisResultSet resultSet)
- Specified by:
getTopHitsin interfaceDifferentialExpressionResultCache- Parameters:
resultSet- result set- Returns:
- top hits, or null.
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceInitializingBean
-
-