다음을 통해 공유


FileSystemOperationsExtensions.ConcurrentAppend Method

Definition

Appends to the specified file, optionally first creating the file if it does not yet exist. This method supports multiple concurrent appends to the file. NOTE: The target must not contain data added by Create or normal (serial) Append. ConcurrentAppend and Append cannot be used interchangeably; once a target file has been modified using either of these append options, the other append option cannot be used on the target file. ConcurrentAppend does not guarantee order and can result in duplicated data landing in the target file.

public static void ConcurrentAppend (this Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations operations, string accountName, string filePath, System.IO.Stream streamContents, Microsoft.Azure.Management.DataLake.Store.Models.AppendModeType? appendMode = default, Microsoft.Azure.Management.DataLake.Store.Models.SyncFlag? syncFlag = default);
public static void ConcurrentAppend (this Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations operations, string accountName, string path, System.IO.Stream streamContents, Microsoft.Azure.Management.DataLake.Store.Models.AppendModeType? appendMode = default, Microsoft.Azure.Management.DataLake.Store.Models.SyncFlag? syncFlag = default);
static member ConcurrentAppend : Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations * string * string * System.IO.Stream * Nullable<Microsoft.Azure.Management.DataLake.Store.Models.AppendModeType> * Nullable<Microsoft.Azure.Management.DataLake.Store.Models.SyncFlag> -> unit
static member ConcurrentAppend : Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations * string * string * System.IO.Stream * Nullable<Microsoft.Azure.Management.DataLake.Store.Models.AppendModeType> * Nullable<Microsoft.Azure.Management.DataLake.Store.Models.SyncFlag> -> unit
<Extension()>
Public Sub ConcurrentAppend (operations As IFileSystemOperations, accountName As String, filePath As String, streamContents As Stream, Optional appendMode As Nullable(Of AppendModeType) = Nothing, Optional syncFlag As Nullable(Of SyncFlag) = Nothing)
<Extension()>
Public Sub ConcurrentAppend (operations As IFileSystemOperations, accountName As String, path As String, streamContents As Stream, Optional appendMode As Nullable(Of AppendModeType) = Nothing, Optional syncFlag As Nullable(Of SyncFlag) = Nothing)

Parameters

operations
IFileSystemOperations

The operations group for this extension method.

accountName
String

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

filePathpath
String

The Data Lake Store path (starting with '/') of the file to which to append using concurrent append.

streamContents
Stream

The file contents to include when appending to the file.

appendMode
Nullable<AppendModeType>

Indicates the concurrent append call should create the file if it doesn't exist or just open the existing file for append. Possible values include: 'autocreate'

syncFlag
Nullable<SyncFlag>

Optionally indicates what to do after completion of the concurrent append. DATA indicates that more data will be sent immediately by the client, the file handle should remain open/locked, and file metadata (including file length, last modified time) should NOT get updated. METADATA indicates that more data will be sent immediately by the client, the file handle should remain open/locked, and file metadata should get updated. CLOSE indicates that the client is done sending data, the file handle should be closed/unlocked, and file metadata should get updated. Possible values include: 'DATA', 'METADATA', 'CLOSE'

Applies to