FileSystemOperationsExtensions.MsConcatAsync Method

Definition

Concatenates the list of source files into the destination file, deleting all source files upon success. This method accepts more source file paths than the Concat method. This method and the parameters it accepts are subject to change for usability in an upcoming version.

public static System.Threading.Tasks.Task MsConcatAsync (this Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations operations, string accountName, string msConcatDestinationPath, System.IO.Stream streamContents, bool? deleteSourceDirectory = default, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task MsConcatAsync (this Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations operations, string accountName, string path, System.IO.Stream streamContents, bool? deleteSourceDirectory = default, System.Threading.CancellationToken cancellationToken = default);
static member MsConcatAsync : Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations * string * string * System.IO.Stream * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
static member MsConcatAsync : Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations * string * string * System.IO.Stream * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function MsConcatAsync (operations As IFileSystemOperations, accountName As String, msConcatDestinationPath As String, streamContents As Stream, Optional deleteSourceDirectory As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task
<Extension()>
Public Function MsConcatAsync (operations As IFileSystemOperations, accountName As String, path As String, streamContents As Stream, Optional deleteSourceDirectory As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

operations
IFileSystemOperations

The operations group for this extension method.

accountName
String

The Azure Data Lake Store account to execute filesystem operations on.

msConcatDestinationPathpath
String

The Data Lake Store path (starting with '/') of the destination file resulting from the concatenation.

streamContents
Stream

A list of Data Lake Store paths (starting with '/') of the source files. Must be a comma-separated path list in the format: sources=/file/path/1.txt,/file/path/2.txt,/file/path/lastfile.csv

deleteSourceDirectory
Nullable<Boolean>

Indicates that as an optimization instead of deleting each individual source stream, delete the source stream folder if all streams are in the same folder instead. This results in a substantial performance improvement when the only streams in the folder are part of the concatenation operation. WARNING: This includes the deletion of any other files that are not source files. Only set this to true when source files are the only files in the source directory.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to