Class ReadToFileOptions
java.lang.Object
com.azure.storage.file.datalake.options.ReadToFileOptions
Parameters when calling readToFile() on
DataLakeFileClient-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.storage.common.ParallelTransferOptionsgetRange()setDataLakeRequestConditions(DataLakeRequestConditions dataLakeRequestConditions) setDownloadRetryOptions(DownloadRetryOptions downloadRetryOptions) setOpenOptions(Set<OpenOption> openOptions) setParallelTransferOptions(com.azure.storage.common.ParallelTransferOptions parallelTransferOptions) setRangeGetContentMd5(Boolean rangeGetContentMd5) setUserPrincipalName(Boolean userPrincipalName)
-
Constructor Details
-
ReadToFileOptions
Constructs aReadToFileOptions.- Parameters:
filePath- Path of the file to download to.
-
-
Method Details
-
getFilePath
- Returns:
- A
Stringrepresenting the filePath where the downloaded data will be written.
-
getRange
- Returns:
FileRange
-
setRange
- Parameters:
range-FileRange- Returns:
- The updated options.
-
getParallelTransferOptions
public com.azure.storage.common.ParallelTransferOptions getParallelTransferOptions()- Returns:
ParallelTransferOptionsto use to download to file. Number of parallel transfers parameter is ignored.
-
setParallelTransferOptions
public ReadToFileOptions setParallelTransferOptions(com.azure.storage.common.ParallelTransferOptions parallelTransferOptions) - Parameters:
parallelTransferOptions-ParallelTransferOptionsto use to download to file. Number of parallel transfers parameter is ignored.- Returns:
- The updated options.
-
getDownloadRetryOptions
- Returns:
DownloadRetryOptions
-
setDownloadRetryOptions
- Parameters:
downloadRetryOptions-DownloadRetryOptions- Returns:
- The updated options.
-
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
- Returns:
- Whether the contentMD5 for the specified file range should be returned.
-
setRangeGetContentMd5
- Parameters:
rangeGetContentMd5- Whether the contentMD5 for the specified file range should be returned.- Returns:
- The updated options.
-
getOpenOptions
- Returns:
OpenOptionsto use to configure how to open or create the file.
-
setOpenOptions
- Parameters:
openOptions-OpenOptionsto use to configure how to open or create the file.- Returns:
- The updated options.
-
isUserPrincipalName
- Returns:
- The value for the x-ms-upn header.
-
setUserPrincipalName
- Parameters:
userPrincipalName- The value for the x-ms-upn header.- Returns:
- The updated options.
-