Interface CoexpressionCache
-
- All Known Implementing Classes:
CoexpressionCacheImpl
public interface CoexpressionCache
Cache for coexpression results. Useful caching requires that the query be done at a suitably low stringency, defined by CACHE_QUERY_STRINGENCY, against all data sets.- Author:
- Paul
- See Also:
CoexpressionQueryQueue
-
-
Field Summary
Fields Modifier and Type Field Description static int
CACHE_QUERY_STRINGENCY
The stringency used to query when populating the cache.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cacheCoexpression(Long geneId, Collection<CoexpressionValueObject> r)
void
cacheCoexpression(Map<Long,List<CoexpressionValueObject>> r)
void
clearCache()
Remove all elements from the cache.List<CoexpressionValueObject>
get(Long g)
boolean
isEnabled()
boolean
remove(Long id)
int
remove(Collection<Long> genes)
Bulk remove from cache.void
shutdown()
-
-
-
Method Detail
-
cacheCoexpression
void cacheCoexpression(Long geneId, Collection<CoexpressionValueObject> r)
-
cacheCoexpression
void cacheCoexpression(Map<Long,List<CoexpressionValueObject>> r)
-
clearCache
void clearCache()
Remove all elements from the cache.
-
get
List<CoexpressionValueObject> get(Long g)
- Parameters:
g
- gene id- Returns:
- results sorted in descending order of support, or null if the gene was not in the cache
-
isEnabled
boolean isEnabled()
-
remove
int remove(Collection<Long> genes)
Bulk remove from cache.- Parameters:
genes
- genes- Returns:
- number of cache entries affected
-
remove
boolean remove(Long id)
-
shutdown
void shutdown()
-
-