AdlsClient.GetReadStreamAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetReadStreamAsync(String, CancellationToken) |
Asynchronous API that returns the stream to read data from file in ADLS |
GetReadStreamAsync(String, Int32, CancellationToken) |
Asynchronous API that returns the stream to read data from file in ADLS |
GetReadStreamAsync(String, CancellationToken)
Asynchronous API that returns the stream to read data from file in ADLS
public virtual System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.AdlsInputStream> GetReadStreamAsync (string filename, System.Threading.CancellationToken cancelToken = default);
abstract member GetReadStreamAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.AdlsInputStream>
override this.GetReadStreamAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.AdlsInputStream>
Public Overridable Function GetReadStreamAsync (filename As String, Optional cancelToken As CancellationToken = Nothing) As Task(Of AdlsInputStream)
Parameters
- filename
- String
File name
- cancelToken
- CancellationToken
CancellationToken to cancel the request
Returns
Input stream
Applies to
GetReadStreamAsync(String, Int32, CancellationToken)
Asynchronous API that returns the stream to read data from file in ADLS
public virtual System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.AdlsInputStream> GetReadStreamAsync (string filename, int bufferCapacity, System.Threading.CancellationToken cancelToken = default);
abstract member GetReadStreamAsync : string * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.AdlsInputStream>
override this.GetReadStreamAsync : string * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.AdlsInputStream>
Public Overridable Function GetReadStreamAsync (filename As String, bufferCapacity As Integer, Optional cancelToken As CancellationToken = Nothing) As Task(Of AdlsInputStream)
Parameters
- filename
- String
File name
- bufferCapacity
- Int32
Buffer Capacity
- cancelToken
- CancellationToken
CancellationToken to cancel the request
Returns
Input stream
Applies to
Azure SDK for .NET