Class CreateFileOptions

    • Constructor Detail

      • CreateFileOptions

        public CreateFileOptions()
    • Method Detail

      • getAttributes

        public abstract com.google.common.collect.ImmutableMap<String,​byte[]> getAttributes()
        Extended attributes to set when creating a file.
      • getContentType

        @Nullable
        public abstract String getContentType()
        Content-type to set when creating a file.
      • getMinSyncInterval

        public abstract Duration getMinSyncInterval()
        Configures the minimum time interval (milliseconds) between consecutive sync/flush calls
      • isEnsureNoDirectoryConflict

        public abstract boolean isEnsureNoDirectoryConflict()
        If true, makes sure there isn't already a directory object of the same name. If false, you run the risk of creating hard-to-cleanup/access files whose names collide with directory names. If already sure no such directory exists, then this is safe to set for improved performance.
      • getOverwriteGenerationId

        public abstract long getOverwriteGenerationId()
        Generation of existing object to overwrite. Ignored if set to StorageResourceId.UNKNOWN_GENERATION_ID, but otherwise this is used instead of overwriteExisting, where 0 indicates no existing object, and otherwise an existing object will only be overwritten by the newly created file if its generation matches this provided generationId.