|
Avro C#
|
Defines the interface for an object that stores in a file a sequence of data conforming to a schema. More...
Public Member Functions | |
| void | Append (T datum) |
| Append datum to a file or stream. More... | |
| void | Close () |
| Closes the file or stream. More... | |
| void | Flush () |
| Flush out any buffered data. More... | |
| bool | IsReservedMeta (string key) |
| Returns true if parameter is a reserved Avro metadata value. More... | |
| void | SetMeta (string key, byte[] value) |
| Set metadata pair. More... | |
| void | SetMeta (string key, long value) |
| Set metadata pair (long value). More... | |
| void | SetMeta (string key, string value) |
| Set metadata pair (string value). More... | |
| void | SetSyncInterval (int syncInterval) |
| Set the synchronization interval for this file or stream, in bytes. Valid values range from 32 to 2^30. Suggested values are between 2K and 2M. More... | |
| long | Sync () |
| Forces the end of the current block, emitting a synchronization marker. More... | |
Defines the interface for an object that stores in a file a sequence of data conforming to a schema.
| T | Type that we will serialize to the file. |
| void Avro.File.IFileWriter< T >.Append | ( | T | datum | ) |
Append datum to a file or stream.
| datum | Datum to append. |
Implemented in Avro.File.DataFileWriter< T >.
| void Avro.File.IFileWriter< T >.Close | ( | ) |
Closes the file or stream.
Implemented in Avro.File.DataFileWriter< T >.
| void Avro.File.IFileWriter< T >.Flush | ( | ) |
Flush out any buffered data.
Implemented in Avro.File.DataFileWriter< T >.
| bool Avro.File.IFileWriter< T >.IsReservedMeta | ( | string | key | ) |
Returns true if parameter is a reserved Avro metadata value.
| key | Metadata key. |
Implemented in Avro.File.DataFileWriter< T >.
| void Avro.File.IFileWriter< T >.SetMeta | ( | string | key, |
| byte[] | value | ||
| ) |
Set metadata pair.
| key | Metadata key. |
| value | Metadata value. |
Implemented in Avro.File.DataFileWriter< T >.
| void Avro.File.IFileWriter< T >.SetMeta | ( | string | key, |
| long | value | ||
| ) |
Set metadata pair (long value).
| key | Metadata key. |
| value | Metadata value. |
Implemented in Avro.File.DataFileWriter< T >.
| void Avro.File.IFileWriter< T >.SetMeta | ( | string | key, |
| string | value | ||
| ) |
Set metadata pair (string value).
| key | Metadata key. |
| value | Metadata value. |
Implemented in Avro.File.DataFileWriter< T >.
| void Avro.File.IFileWriter< T >.SetSyncInterval | ( | int | syncInterval | ) |
Set the synchronization interval for this file or stream, in bytes. Valid values range from 32 to 2^30. Suggested values are between 2K and 2M.
| syncInterval | Approximate number of uncompressed bytes to write in each block. |
Implemented in Avro.File.DataFileWriter< T >.
| long Avro.File.IFileWriter< T >.Sync | ( | ) |
Forces the end of the current block, emitting a synchronization marker.
Implemented in Avro.File.DataFileWriter< T >.