Class DataLakeFileInputStreamOptions
- java.lang.Object
-
- com.azure.storage.file.datalake.options.DataLakeFileInputStreamOptions
-
public final class DataLakeFileInputStreamOptions extends Object
Extended options that may be passed when opening a blob input stream.
-
-
Constructor Summary
Constructors Constructor Description DataLakeFileInputStreamOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetBlockSize()ConsistentReadControlgetConsistentReadControl()FileRangegetRange()DataLakeRequestConditionsgetRequestConditions()DataLakeFileInputStreamOptionssetBlockSize(Integer blockSize)DataLakeFileInputStreamOptionssetConsistentReadControl(ConsistentReadControl consistentReadControl)DataLakeFileInputStreamOptionssetRange(FileRange range)DataLakeFileInputStreamOptionssetRequestConditions(DataLakeRequestConditions requestConditions)
-
-
-
Method Detail
-
setRange
public DataLakeFileInputStreamOptions setRange(FileRange range)
- Parameters:
range-FileRange- Returns:
- The updated options.
-
getRequestConditions
public DataLakeRequestConditions getRequestConditions()
- Returns:
DataLakeRequestConditions
-
setRequestConditions
public DataLakeFileInputStreamOptions setRequestConditions(DataLakeRequestConditions requestConditions)
- Parameters:
requestConditions-DataLakeRequestConditions- Returns:
- The updated options.
-
getBlockSize
public Integer getBlockSize()
- 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
public DataLakeFileInputStreamOptions setBlockSize(Integer blockSize)
- 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
public ConsistentReadControl getConsistentReadControl()
- Returns:
ConsistentReadControlDefault is E-Tag.
-
setConsistentReadControl
public DataLakeFileInputStreamOptions setConsistentReadControl(ConsistentReadControl consistentReadControl)
- Parameters:
consistentReadControl-ConsistentReadControlDefault is E-Tag.- Returns:
- The updated options.
-
-