Uploaded image for project: 'Terrier Core'
  1. Terrier Core
  2. TR-62

Add caching support to Files API

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: .utility
    • Labels:
      None

      Description


      Some operations would benefit from the ability to cache a file locally.

      For instance, direct -> inverted inversion can involve multiple passes of the direct file. Ideally, the direct files should then be cached locally.

      {code}
      class Files
      {
       public static void cacheFile(String filename, String temporaryFolder) throws IOException
      }
      {code}

      What are the failure modes. and how should these be signalled to the client code?

        Attachments

          Activity

          Hide
          craigm Craig Macdonald added a comment -

          Add ability to cache entire files to a local filesystem. Failure modes are propagated as IOExceptions.

          Show
          craigm Craig Macdonald added a comment - Add ability to cache entire files to a local filesystem. Failure modes are propagated as IOExceptions.

            People

            • Assignee:
              craigm Craig Macdonald
              Reporter:
              craigm Craig Macdonald
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: