Class SequenceFile

    • Constructor Detail

      • SequenceFile

        public SequenceFile()
      • SequenceFile

        public SequenceFile​(java.nio.file.Path sampleFile)
        Create a new SequenceFile with the given file Path
        Parameters:
        sampleFile - The Path to a SequenceFile
    • Method Detail

      • compareTo

        public int compareTo​(SequenceFile other)
        Specified by:
        compareTo in interface java.lang.Comparable<SequenceFile>
      • getCreatedDate

        public java.util.Date getCreatedDate()
        Description copied from interface: Timestamped
        Get the created date of the object
        Specified by:
        getCreatedDate in interface Timestamped<java.lang.Long>
        Returns:
        A Date object of the created date
      • getFile

        public java.nio.file.Path getFile()
        Description copied from interface: IridaSequenceFile
        Get the location on the file system where the sequence file is stored
        Specified by:
        getFile in interface IridaSequenceFile
        Returns:
        the physical location of the file.
      • setFile

        public void setFile​(java.nio.file.Path file)
      • getLabel

        public java.lang.String getLabel()
        Description copied from interface: IridaThing
        Get a human readable label for this object.
        Specified by:
        getLabel in interface IridaThing
        Returns:
        a human-readable label for the object.
      • getId

        public java.lang.Long getId()
        Description copied from interface: IridaThing
        Get the numerical identifier for this object
        Specified by:
        getId in interface IridaThing
        Specified by:
        getId in interface Timestamped<java.lang.Long>
        Returns:
        the numerical identifier for the object
      • setId

        public void setId​(java.lang.Long id)
        Description copied from interface: MutableIridaThing
        Set the numerical identifier for this object
        Specified by:
        setId in interface MutableIridaThing
        Parameters:
        id - The ID to set
      • getModifiedDate

        public java.util.Date getModifiedDate()
        Description copied from interface: MutableIridaThing
        Get the date that this object was last modified
        Specified by:
        getModifiedDate in interface MutableIridaThing
        Returns:
        Date object of the modified date
      • setModifiedDate

        public void setModifiedDate​(java.util.Date modifiedDate)
        Description copied from interface: MutableIridaThing
        Set the modification time of this object
        Specified by:
        setModifiedDate in interface MutableIridaThing
        Parameters:
        modifiedDate - The date where this object was modified
      • addOptionalProperty

        public void addOptionalProperty​(java.lang.String key,
                                        java.lang.String value)
        Add one optional property to the map of properties
        Parameters:
        key - The key of the property to add
        value - The value of the property to add
      • getOptionalProperties

        public java.util.Map<java.lang.String,​java.lang.String> getOptionalProperties()
        Get the Map of optional properties
        Returns:
        A Map<String,String> of all the optional propertie
      • getOptionalProperty

        public java.lang.String getOptionalProperty​(java.lang.String key)
        Get an individual optional property
        Parameters:
        key - The key of the property to read
        Returns:
        A String of the property's value
      • getFileSize

        public java.lang.String getFileSize()
        Get the size of the file.
        Specified by:
        getFileSize in interface IridaSequenceFile
        Returns:
        The String representation of the file size
      • setOptionalProperties

        public void setOptionalProperties​(java.util.Map<java.lang.String,​java.lang.String> optionalProperties)
        Set the Map of optional properties
        Parameters:
        optionalProperties - A Map<String,String> of all the optional properties for this object
      • getFileName

        public java.lang.String getFileName()
        Description copied from interface: IridaSequenceFile
        The base name of the file
        Specified by:
        getFileName in interface IridaSequenceFile
        Returns:
        a string base name of the file
      • getUploadSha256

        public java.lang.String getUploadSha256()
        Get the sha256 checksum for a file when it was uploaded. NOTE: This checksum may not be the same as the sha256 for the current file. The checksum from the originally uploaded file is saved so an uploader can verify its file upload.
        Returns:
        the string sha256 for the uploaded file.
      • setUploadSha256

        public void setUploadSha256​(java.lang.String uploadSha256)