public static class DirectoryManifest.ManifestEntry
extends java.lang.Object
Constructor and Description |
---|
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,
java.lang.String md5,
java.lang.String mimeType,
java.lang.String parent,
java.util.Set<java.lang.String> children)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getMd5()
Get the MD5 hash of the file (as 32 hex characters) if it was calculated.
|
java.util.Optional<java.lang.String> |
getMimeType()
Get the mime type of this file if it was calculated.
|
java.util.Optional<java.lang.String> |
getParent()
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 directoryname
- The name of the entrylastModifiedTime
- The time the entry was last modifiedlastAccessTime
- The time the entry was last accessedcreationTime
- The time the entry was createddirectory
- Whether this entry is a directory or notsize
- The current size of the entry within the storage system in bytes. Min 0md5
- The md5 hex of the file contents if it's not a directorymimeType
- The mime type of the file. Null if its a directoryparent
- Optional entry for the path of this entries parent relative to rootchildren
- The set of paths, from the root, representing children of this entry if anypublic java.util.Optional<java.lang.String> getMd5()
Optional.empty()
public java.util.Optional<java.lang.String> getMimeType()
Optional.empty()
public java.util.Optional<java.lang.String> getParent()
Optional