Interface RawDataCache

    • Method Detail

      • cache

        Long cache​(Long id)
        Cache the raw data associated with the given ID as a file, or null if we could not find any such data. The data can be found in the file specified by getCacheFile(ID), if this call is successfull.
        Parameters:
        id - The job ID to look for data for.
        Returns:
        The data found, or null on failure.
      • get

        Map<Long,​File> get​(Set<Long> ids)
        Get the raw data files for a set of job IDs. This is commonly a convenience wrapper around cache(Long) and getCacheFile(Long), but may reduce overhead.
        Parameters:
        ids - Set of job IDs to get data for.
        Returns:
        Map of ID to file containing data for that ID, or to null if data could not be found.