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 Details

  • Method Details

    • getRange

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

      public DataLakeFileInputStreamOptions setRange(FileRange range)
      Sets the FileRange.
      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()
      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

      public DataLakeFileInputStreamOptions setBlockSize(Integer blockSize)
      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

      public ConsistentReadControl getConsistentReadControl()
      Gets the ConsistentReadControl Default is E-Tag.
      Returns:
      ConsistentReadControl Default is E-Tag.
    • setConsistentReadControl

      public DataLakeFileInputStreamOptions setConsistentReadControl(ConsistentReadControl consistentReadControl)
      Sets the ConsistentReadControl Default is E-Tag.
      Parameters:
      consistentReadControl - ConsistentReadControl Default is E-Tag.
      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 DataLakeFileInputStreamOptions 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.