public static class DirectoryManifest.ManifestEntry extends java.lang.Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Get the MD5 hash of the file (as 32 hex characters) if it was calculated.
Get the mime type of this file if it was calculated.
Get the relative path from root of the parent of this entry if there was one.
public ManifestEntry(java.lang.String path, java.lang.String name, java.time.Instant lastModifiedTime, java.time.Instant lastAccessTime, java.time.Instant creationTime, boolean directory, long size, @Nullable java.lang.String md5, @Nullable java.lang.String mimeType, @Nullable java.lang.String parent, java.util.Set<java.lang.String> children)
path- The relative path to the entry from the root of the job directory
name- The name of the entry
lastModifiedTime- The time the entry was last modified
lastAccessTime- The time the entry was last accessed
creationTime- The time the entry was created
directory- Whether this entry is a directory or not
size- The current size of the entry within the storage system in bytes. Min 0
md5- The md5 hex of the file contents if it's not a directory
mimeType- The mime type of the file. Null if its a directory
parent- Optional entry for the path of this entries parent relative to root
children- The set of paths, from the root, representing children of this entry if any
public java.util.Optional<java.lang.String> getMd5()
public java.util.Optional<java.lang.String> getMimeType()
public java.util.Optional<java.lang.String> getParent()