Class DistributedCache.DistributedCacheEntry

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    DistributedCache

    public static class DistributedCache.DistributedCacheEntry
    extends Object
    implements Serializable
    Meta info about an entry in DistributedCache.

    Entries have different semantics for local directories depending on where we are in the job-submission process. After registration through the API filePath denotes the original directory. After the upload to the cluster (which includes zipping the directory), filePath denotes the (server-side) copy of the zip.

    See Also:
    Serialized Form
    • Field Detail

      • filePath

        public String filePath
      • isExecutable

        public Boolean isExecutable
      • isZipped

        public boolean isZipped
      • blobKey

        public byte[] blobKey
    • Constructor Detail

      • DistributedCacheEntry

        public DistributedCacheEntry​(String filePath,
                                     Boolean isExecutable)
        Client-side constructor used by the API for initial registration.
      • DistributedCacheEntry

        public DistributedCacheEntry​(String filePath,
                                     boolean isExecutable,
                                     boolean isZipped)
        Client-side constructor used during job-submission for zipped directory.
      • DistributedCacheEntry

        public DistributedCacheEntry​(String filePath,
                                     Boolean isExecutable,
                                     byte[] blobKey,
                                     boolean isZipped)
        Server-side constructor used during job-submission for zipped directories.
      • DistributedCacheEntry

        public DistributedCacheEntry​(String filePath,
                                     Boolean isExecutable,
                                     byte[] blobKey)
        Server-side constructor used during job-submission for files.