Class LocalFile

    • Constructor Detail

      • LocalFile

        protected LocalFile​(Path file,
                            Path basePath)
        Constructs a new file representing a file on the disk.
        Parameters:
        file - the path to the file to be represented
        basePath - the base path
    • Method Detail

      • getS3Key

        public String getS3Key()
      • getChecksum

        public String getChecksum()
      • getFile

        public Path getFile()
      • createS3Key

        protected String createS3Key​(Path file,
                                     Path rootFolder)
      • getContentType

        public String getContentType()
        Value for the content-type header.
        Returns:
        Either zip or json.
      • isKeyFile

        public boolean isKeyFile()
        Indicates if a local file is a Key-file or not. Only the Key files are stored in the Date / Hour tree structure. One file per sub-folder (days: 1-31 / hours: 0-23). The index files are not stored in folders ending with a digit.
        Returns:
        true if and only if the s3Key ends with a digit, false otherwise.