AdlsClient.GetReadStreamAsync Method

Definition

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
System.String

File name

cancelToken
System.Threading.CancellationToken

CancellationToken to cancel the request

Returns

System.Threading.Tasks.Task<AdlsInputStream>

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
System.String

File name

bufferCapacity
System.Int32

Buffer Capacity

cancelToken
System.Threading.CancellationToken

CancellationToken to cancel the request

Returns

System.Threading.Tasks.Task<AdlsInputStream>

Input stream

Applies to