你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AdlsClient.GetReadStreamAsync 方法

定义

重载

GetReadStreamAsync(String, CancellationToken)

异步 API,用于返回流以从 ADLS 中的文件读取数据

GetReadStreamAsync(String, Int32, CancellationToken)

异步 API,用于返回流以从 ADLS 中的文件读取数据

GetReadStreamAsync(String, CancellationToken)

异步 API,用于返回流以从 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)

参数

filename
String

文件名

cancelToken
CancellationToken

取消取消请求的 CancellationToken

返回

输入流

适用于

GetReadStreamAsync(String, Int32, CancellationToken)

异步 API,用于返回流以从 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)

参数

filename
String

文件名

bufferCapacity
Int32

缓冲区容量

cancelToken
CancellationToken

取消取消请求的 CancellationToken

返回

输入流

适用于