Class Metadata

java.lang.Object
org.apache.opendal.Metadata

public class Metadata extends Object
Metadata carries all metadata associated with a path.
  • Field Details

    • mode

      public final Metadata.EntryMode mode
      Mode of the entry.
    • contentLength

      public final long contentLength
      Content Length of the entry.

      Note: For now, this value is only available when calling on result of `stat`, otherwise it will be -1.

    • contentDisposition

      public final String contentDisposition
      Content-Disposition of the entry.

      Note: For now, this value is only available when calling on result of `stat`, otherwise it will be null.

    • contentMd5

      public final String contentMd5
      Content MD5 of the entry.

      Note: For now, this value is only available when calling on result of `stat`, otherwise it will be null.

    • contentType

      public final String contentType
      Content Type of the entry.

      Note: For now, this value is only available when calling on result of `stat`, otherwise it will be null.

    • cacheControl

      public final String cacheControl
      Cache Control of the entry.

      Note: For now, this value is only available when calling on result of `stat`, otherwise it will be null.

    • etag

      public final String etag
      Etag of the entry.

      Note: For now, this value is only available when calling on result of `stat`, otherwise it will be null.

    • lastModified

      public final Instant lastModified
      Last Modified of the entry.

      Note: For now, this value is only available when calling on result of `stat`, otherwise it will be null.

    • version

      public final String version
      Version of the entry. Version is a string that can be used to identify the version of this entry. This field may come out from the version control system, like object versioning in AWS S3.

      Note: For now, this value is only available when calling on result of `stat`, otherwise it will be null.

  • Constructor Details

  • Method Details

    • isFile

      public boolean isFile()
    • isDir

      public boolean isDir()