Class BatchDownload


  • public class BatchDownload
    extends Object
    • Field Detail

      • uuid

        public final String uuid
      • filename

        public final Path filename
      • query

        public final String query
      • uri

        public final String uri
      • user

        public final User user
      • encrypted

        public final boolean encrypted
      • zipSize

        public volatile long zipSize
    • Method Detail

      • createFilename

        public static Path createFilename​(User user)
      • setZipSize

        public void setZipSize​(long zipSize)
        useful because zipSize cannot be known by object constructor method (before the zip file actually exists on disk) see org.icij.datashare.tasks.BatchDownloadRunner
        Parameters:
        zipSize -
      • getExists

        public boolean getExists()
      • isJsonQuery

        public boolean isJsonQuery()
      • queryAsJson

        public com.fasterxml.jackson.databind.JsonNode queryAsJson()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object