FileSystemOperationsExtensions.DirectOpenAsync Method (IFileSystemOperations, String, String, FileOpenParameters)
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
public static Task<FileOpenResponse> DirectOpenAsync(
this IFileSystemOperations operations,
string filePath,
string accountName,
FileOpenParameters parameters
)
public:
[ExtensionAttribute]
static Task<FileOpenResponse^>^ DirectOpenAsync(
IFileSystemOperations^ operations,
String^ filePath,
String^ accountName,
FileOpenParameters^ parameters
)
static member DirectOpenAsync :
operations:IFileSystemOperations *
filePath:string *
accountName:string *
parameters:FileOpenParameters -> Task<FileOpenResponse>
<ExtensionAttribute>
Public Shared Function DirectOpenAsync (
operations As IFileSystemOperations,
filePath As String,
accountName As String,
parameters As FileOpenParameters
) As Task(Of FileOpenResponse)
Parameters
operations
Type: Microsoft.Azure.Management.DataLake.StoreFileSystem.IFileSystemOperationsReference to the Microsoft.Azure.Management.DataLake.StoreFileSystem.IFileSystemOperations.
filePath
Type: System.StringRequired. The path to the file to open.
accountName
Type: System.StringRequired. The name of the account to use
parameters
Type: Microsoft.Azure.Management.DataLake.StoreFileSystem.Models.FileOpenParametersOptional. The optional parameters to pass to the open operation
Return Value
Type: System.Threading.Tasks.Task<FileOpenResponse>
The data from the file requested.
See Also
FileSystemOperationsExtensions Class
Microsoft.Azure.Management.DataLake.StoreFileSystem Namespace
Return to top