Class ObjectUnderFileSystem.ObjectStatus

  • Enclosing class:
    ObjectUnderFileSystem

    protected static class ObjectUnderFileSystem.ObjectStatus
    extends java.lang.Object
    Information about a single object in object UFS.
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectStatus​(java.lang.String name)  
      ObjectStatus​(java.lang.String name, java.lang.String contentHash, long contentLength, java.lang.Long lastModifiedTimeMs)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContentHash()  
      long getContentLength()
      Gets the size of object contents in bytes.
      java.lang.Long getLastModifiedTimeMs()
      Gets the last modified epoch time in ms.
      java.lang.String getName()
      Gets the name of the object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObjectStatus

        public ObjectStatus​(java.lang.String name,
                            java.lang.String contentHash,
                            long contentLength,
                            @Nullable
                            java.lang.Long lastModifiedTimeMs)
      • ObjectStatus

        public ObjectStatus​(java.lang.String name)
    • Method Detail

      • getContentHash

        public java.lang.String getContentHash()
        Returns:
        the hash of the content
      • getContentLength

        public long getContentLength()
        Gets the size of object contents in bytes.
        Returns:
        the content length in bytes
      • getLastModifiedTimeMs

        @Nullable
        public java.lang.Long getLastModifiedTimeMs()
        Gets the last modified epoch time in ms.
        Returns:
        modification time in milliseconds
      • getName

        public java.lang.String getName()
        Gets the name of the object.
        Returns:
        object name