AdlsOutputStream Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
ADLS Output stream that writes data to a file on Data lake. It writes data to a buffer and when the buffer gets filled, writes data in bulk to server Data can be written asynchronously/synchronously. Write is fully synchronous till the transport layer. WriteAsync is fully asynchronous till the transport layer. AdlsOutputStream is not threadsafe since it uses buffer (maintains state so not stateless).
public class AdlsOutputStream : System.IO.Stream
type AdlsOutputStream = class
inherit Stream
Public Class AdlsOutputStream
Inherits Stream
- Inheritance
-
AdlsOutputStream
- Derived
Constructors
AdlsOutputStream() |
Properties
CanRead |
Stream cannot read data |
CanSeek |
Stream cannot seek data |
CanWrite |
Stream can write data |
Length |
Not supported |
Position |
Set is not supported. Gets the position where next data will be written |
Methods
Dispose(Boolean) |
Releases the unmanaged resources used by the Stream and optionally releases the managed resources |
Flush() |
Synchronously flushes data from buffer to server and updates the metadata |
FlushAsync(CancellationToken) |
Asynchronously flushes data from buffer to server and updates the metadata |
Read(Byte[], Int32, Int32) |
Not supported |
Seek(Int64, SeekOrigin) |
Not supported |
SetLength(Int64) |
Not supported |
Write(Byte[], Int32, Int32) |
Writes data to internal buffer. If the buffer fills up then writes to the file in server. Does it synchronously |
WriteAsync(Byte[], Int32, Int32, CancellationToken) |
Writes data to internal buffer. If the buffer fills up then writes to the file in server. Does it asynchronously |
Applies to
Azure SDK for .NET