Class DataLakeFileAppendOptions

java.lang.Object
com.azure.storage.file.datalake.options.DataLakeFileAppendOptions

public class DataLakeFileAppendOptions extends Object
Optional parameters for appending data to a file.
  • Constructor Details

    • DataLakeFileAppendOptions

      public DataLakeFileAppendOptions()
  • Method Details

    • getLeaseId

      public String getLeaseId()
      Gets the lease ID to access the file.
      Returns:
      lease ID to access this file.
    • setLeaseId

      public DataLakeFileAppendOptions setLeaseId(String leaseId)
      Sets the lease ID.
      Parameters:
      leaseId - The lease ID.
      Returns:
      the updated DataLakeFileAppendOptions object.
    • getContentMd5

      public byte[] getContentMd5()
      When this header is specified, the storage service compares the hash of the content that has arrived with this header value. If the two hashes do not match, the operation will fail with error code 400 (Bad Request). Note that this MD5 hash is not stored with the file. This header is associated with the request content, and not with the stored content of the file itself.
      Returns:
      MD5 hash of the content of the data.
    • setContentHash

      public DataLakeFileAppendOptions setContentHash(byte[] contentMd5)
      This hash is used to verify the integrity of the request content during transport. When this header is specified, the storage service compares the hash of the content that has arrived with this header value. If the two hashes do not match, the operation will fail with error code 400 (Bad Request). Note that this MD5 hash is not stored with the file. This header is associated with the request content, and not with the stored content of the file itself.
      Parameters:
      contentMd5 - contentMd5 An MD5 hash of the content of the data. If specified, the service will calculate the MD5 of the received data and fail the request if it does not match the provided MD5.
      Returns:
      the updated DataLakeFileAppendOptions object.
    • isFlush

      public Boolean isFlush()
      Returns whether file will be flushed after the append.
      Returns:
      the boolean flag for flush.
    • setFlush

      public DataLakeFileAppendOptions setFlush(Boolean flush)
      If true, the file will be flushed after the append.
      Parameters:
      flush - boolean flag to indicate whether file should be flushed.
      Returns:
      the updated DataLakeFileAppendOptions object.