IFileSystemOperations.DirectOpenAsync Method (String, String, FileOpenParameters, CancellationToken)
Directly opens and reads from the specified file, without requiring a redirect. This API is NOT webhdfs compliant. It should be used only by tools that do not rely on webhdfs interoperability.
Namespace: Microsoft.Azure.Management.DataLake.StoreFileSystem
Assembly: Microsoft.Azure.Management.DataLake.StoreFileSystem (in Microsoft.Azure.Management.DataLake.StoreFileSystem.dll)
Syntax
Task<FileOpenResponse> DirectOpenAsync(
string filePath,
string accountName,
FileOpenParameters parameters,
CancellationToken cancellationToken
)
Task<FileOpenResponse^>^ DirectOpenAsync(
String^ filePath,
String^ accountName,
FileOpenParameters^ parameters,
CancellationToken cancellationToken
)
abstract DirectOpenAsync :
filePath:string *
accountName:string *
parameters:FileOpenParameters *
cancellationToken:CancellationToken -> Task<FileOpenResponse>
Function DirectOpenAsync (
filePath As String,
accountName As String,
parameters As FileOpenParameters,
cancellationToken As CancellationToken
) As Task(Of FileOpenResponse)
Parameters
filePath
Type: System.StringThe path to the file to open.
accountName
Type: System.StringThe name of the account to use
parameters
Type: Microsoft.Azure.Management.DataLake.StoreFileSystem.Models.FileOpenParametersThe optional parameters to pass to the open operation
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<FileOpenResponse>
The data from the file requested.
See Also
IFileSystemOperations Interface
Microsoft.Azure.Management.DataLake.StoreFileSystem Namespace
Return to top