Share via


AdlsClient.GetAppendStream(String, CancellationToken) Method

Definition

Synchronous API that returns the stream to write data to a file in ADLS. The file is opened with exclusive access - any attempt to open the same file for append will fail while this stream is open.

Threading: The returned stream is not thread-safe.

public virtual Microsoft.Azure.DataLake.Store.AdlsOutputStream GetAppendStream (string filename, System.Threading.CancellationToken cancelToken = default);
abstract member GetAppendStream : string * System.Threading.CancellationToken -> Microsoft.Azure.DataLake.Store.AdlsOutputStream
override this.GetAppendStream : string * System.Threading.CancellationToken -> Microsoft.Azure.DataLake.Store.AdlsOutputStream
Public Overridable Function GetAppendStream (filename As String, Optional cancelToken As CancellationToken = Nothing) As AdlsOutputStream

Parameters

filename
String

File name

cancelToken
CancellationToken

CancellationToken to cancel the request

Returns

Output stream

Applies to