Class DataLakeFileInputStreamOptions
java.lang.Object
com.azure.storage.file.datalake.options.DataLakeFileInputStreamOptions
Extended options that may be passed when opening a blob input stream.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the size of each data chunk returned from the service.Gets theConsistentReadControl
Default is E-Tag.getRange()
Gets theFileRange
.Gets theDataLakeRequestConditions
.Gets the value for the x-ms-upn header.setBlockSize
(Integer blockSize) Sets the size of each data chunk returned from the service.setConsistentReadControl
(ConsistentReadControl consistentReadControl) Sets theConsistentReadControl
Default is E-Tag.Sets theFileRange
.setRequestConditions
(DataLakeRequestConditions requestConditions) Sets theDataLakeRequestConditions
.setUserPrincipalName
(Boolean userPrincipalName) Sets the value for the x-ms-upn header.
-
Constructor Details
-
DataLakeFileInputStreamOptions
public DataLakeFileInputStreamOptions()Creates a new instance ofDataLakeFileInputStreamOptions
.
-
-
Method Details
-
getRange
Gets theFileRange
.- Returns:
FileRange
-
setRange
Sets theFileRange
.- Parameters:
range
-FileRange
- Returns:
- The updated options.
-
getRequestConditions
Gets theDataLakeRequestConditions
.- Returns:
DataLakeRequestConditions
-
setRequestConditions
public DataLakeFileInputStreamOptions setRequestConditions(DataLakeRequestConditions requestConditions) Sets theDataLakeRequestConditions
.- Parameters:
requestConditions
-DataLakeRequestConditions
- Returns:
- The updated options.
-
getBlockSize
Gets the size of each data chunk returned from the service. If block size is large, input stream will make fewer network calls, but each individual call will send more data and will therefore take longer. The default value is 4 MB.- Returns:
- The size of each data chunk returned from the service. If block size is large, input stream will make fewer network calls, but each individual call will send more data and will therefore take longer. The default value is 4 MB.
-
setBlockSize
Sets the size of each data chunk returned from the service. If block size is large, input stream will make fewer network calls, but each individual call will send more data and will therefore take longer. The default value is 4 MB.- Parameters:
blockSize
- The size of each data chunk returned from the service. If block size is large, input stream will make fewer network calls, but each individual call will send more data and will therefore take longer. The default value is 4 MB.- Returns:
- The updated options.
-
getConsistentReadControl
Gets theConsistentReadControl
Default is E-Tag.- Returns:
ConsistentReadControl
Default is E-Tag.
-
setConsistentReadControl
public DataLakeFileInputStreamOptions setConsistentReadControl(ConsistentReadControl consistentReadControl) Sets theConsistentReadControl
Default is E-Tag.- Parameters:
consistentReadControl
-ConsistentReadControl
Default is E-Tag.- Returns:
- The updated options.
-
isUserPrincipalName
Gets the value for the x-ms-upn header.- Returns:
- The value for the x-ms-upn header.
-
setUserPrincipalName
Sets the value for the x-ms-upn header.- Parameters:
userPrincipalName
- The value for the x-ms-upn header.- Returns:
- The updated options.
-