|
Kinetica C# API
Version 7.2.3.1
|
Ultra-high-performance Avro encoder that writes directly to binary format without using GenericRecord or the Avro library's writers. More...
Public Member Functions | |
| byte [] | Encode (T record) |
| Encodes a single record to Avro binary format. More... | |
| int | EncodeTo (T record, ref byte[] buffer, int offset) |
| Encodes a single record directly into the provided buffer. More... | |
| int | CalculateEncodedSize (T record) |
| Calculates the encoded size of a record without actually encoding it. More... | |
| byte [][] | EncodeMany (IReadOnlyList< T > records) |
| Encodes multiple records in parallel using thread-local buffers. More... | |
| List< byte[]> | EncodeManyAsList (IReadOnlyList< T > records) |
| Encodes multiple records to a list. More... | |
Static Public Member Functions | |
| static DirectAvroEncoder< T > | GetOrCreate (KineticaType ktype) |
| Gets or creates a DirectAvroEncoder for the specified type and KineticaType. More... | |
Public Attributes | |
| byte [] | Buffer |
| Zero-copy batch encoding: encodes all records into a single contiguous buffer and returns segments pointing into that buffer. More... | |
Ultra-high-performance Avro encoder that writes directly to binary format without using GenericRecord or the Avro library's writers.
This provides 2-5x faster encoding by:
Definition at line 83 of file AvroEncoders.cs.
|
inline |
Calculates the encoded size of a record without actually encoding it.
Useful for pre-allocating buffers.
Definition at line 260 of file AvroEncoders.cs.
|
inline |
Encodes a single record to Avro binary format.
Uses thread-local buffer to minimize allocations.
Definition at line 218 of file AvroEncoders.cs.
|
inline |
Encodes multiple records in parallel using thread-local buffers.
Definition at line 272 of file AvroEncoders.cs.
|
inline |
Encodes multiple records to a list.
Definition at line 298 of file AvroEncoders.cs.
|
inline |
Encodes a single record directly into the provided buffer.
Returns the number of bytes written. Buffer may be resized if needed.
Definition at line 244 of file AvroEncoders.cs.
|
inlinestatic |
Gets or creates a DirectAvroEncoder for the specified type and KineticaType.
Definition at line 95 of file AvroEncoders.cs.
| byte [] DirectAvroEncoder< T >.Buffer |
Zero-copy batch encoding: encodes all records into a single contiguous buffer and returns segments pointing into that buffer.
Zero-copy parallel batch encoding: encodes records in parallel, then concatenates into a single buffer.
Definition at line 307 of file AvroEncoders.cs.