MockAdlsOutputStream 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.
Mock Adls Output stream for unit test
public sealed class MockAdlsOutputStream : Microsoft.Azure.DataLake.Store.AdlsOutputStream
type MockAdlsOutputStream = class
inherit AdlsOutputStream
Public NotInheritable Class MockAdlsOutputStream
Inherits AdlsOutputStream
- Inheritance
Properties
CanRead |
Stream cannot read data (Inherited from AdlsOutputStream) |
CanSeek |
Stream cannot seek data (Inherited from AdlsOutputStream) |
CanWrite |
Stream can write data (Inherited from AdlsOutputStream) |
Length |
Not supported (Inherited from AdlsOutputStream) |
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 (Inherited from AdlsOutputStream) |
Flush() |
Synchronously flushes data from buffer to underlying stream and updates the metadata |
FlushAsync(CancellationToken) |
Asynchronously flushes data from buffer to underlying stream and updates the metadata |
Read(Byte[], Int32, Int32) |
Not supported (Inherited from AdlsOutputStream) |
Seek(Int64, SeekOrigin) |
Not supported (Inherited from AdlsOutputStream) |
SetLength(Int64) |
Not supported (Inherited from AdlsOutputStream) |
Write(Byte[], Int32, Int32) |
Writes data to internal buffer. If the buffer fills up then writes to the underlying stream. Does it synchronously |
WriteAsync(Byte[], Int32, Int32, CancellationToken) |
Writes data to internal buffer. If the buffer fills up then writes to the underlying stream. Does it asynchronously |
Applies to
Azure SDK for .NET