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 Detail

      • CACHE_QUERY_STRINGENCY

        static final int CACHE_QUERY_STRINGENCY
        The stringency used to query when populating the cache. This can't be too low or the cache gets gigantic; if someone is querying for data from a single dataset, they would use experiment-first mode.
    • Method Detail

      • 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()