Class ReadToFileOptions

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

public class ReadToFileOptions extends Object
Parameters when calling readToFile() on DataLakeFileClient
  • Constructor Details

  • Method Details

    • getFilePath

      public String getFilePath()
      Gets the path of the file to download to.
      Returns:
      The path where the downloaded data will be written.
    • getRange

      public FileRange getRange()
      Gets the FileRange.
      Returns:
      FileRange
    • setRange

      public ReadToFileOptions setRange(FileRange range)
      Sets the FileRange.
      Parameters:
      range - FileRange
      Returns:
      The updated options.
    • getParallelTransferOptions

      public com.azure.storage.common.ParallelTransferOptions getParallelTransferOptions()
      Gets the ParallelTransferOptions to use to download to file. Number of parallel transfers parameter is ignored.
      Returns:
      ParallelTransferOptions to use to download to file. Number of parallel transfers parameter is ignored.
    • setParallelTransferOptions

      public ReadToFileOptions setParallelTransferOptions(com.azure.storage.common.ParallelTransferOptions parallelTransferOptions)
      Sets the ParallelTransferOptions to use to download to file. Number of parallel transfers parameter is ignored.
      Parameters:
      parallelTransferOptions - ParallelTransferOptions to use to download to file. Number of parallel transfers parameter is ignored.
      Returns:
      The updated options.
    • getDownloadRetryOptions

      public DownloadRetryOptions getDownloadRetryOptions()
      Returns:
      DownloadRetryOptions
    • setDownloadRetryOptions

      public ReadToFileOptions setDownloadRetryOptions(DownloadRetryOptions downloadRetryOptions)
      Parameters:
      downloadRetryOptions - DownloadRetryOptions
      Returns:
      The updated options.
    • getDataLakeRequestConditions

      public DataLakeRequestConditions getDataLakeRequestConditions()
      Returns:
      requestConditions DataLakeRequestConditions
    • setDataLakeRequestConditions

      public ReadToFileOptions setDataLakeRequestConditions(DataLakeRequestConditions dataLakeRequestConditions)
      Parameters:
      dataLakeRequestConditions - DataLakeRequestConditions
      Returns:
      The updated options.
      Throws:
      UncheckedIOException - If an I/O error occurs.
    • isRangeGetContentMd5

      public Boolean isRangeGetContentMd5()
      Gets whether the contentMD5 for the specified file range should be returned.
      Returns:
      Whether the contentMD5 for the specified file range should be returned.
    • setRangeGetContentMd5

      public ReadToFileOptions setRangeGetContentMd5(Boolean rangeGetContentMd5)
      Sets whether the contentMD5 for the specified file range should be returned.
      Parameters:
      rangeGetContentMd5 - Whether the contentMD5 for the specified file range should be returned.
      Returns:
      The updated options.
    • getOpenOptions

      public Set<OpenOption> getOpenOptions()
      Gets the OpenOptions to use to configure how to open or create the file.
      Returns:
      OpenOptions to use to configure how to open or create the file.
    • setOpenOptions

      public ReadToFileOptions setOpenOptions(Set<OpenOption> openOptions)
      Sets the OpenOptions to use to configure how to open or create the file.
      Parameters:
      openOptions - OpenOptions to use to configure how to open or create the file.
      Returns:
      The updated options.
    • isUserPrincipalName

      public Boolean isUserPrincipalName()
      Gets the value for the x-ms-upn header.
      Returns:
      The value for the x-ms-upn header.
    • setUserPrincipalName

      public ReadToFileOptions setUserPrincipalName(Boolean userPrincipalName)
      Sets the value for the x-ms-upn header.
      Parameters:
      userPrincipalName - The value for the x-ms-upn header.
      Returns:
      The updated options.