Avro C#
 All Classes Namespaces Functions Variables Enumerations Properties
Classes | Public Member Functions | Protected Member Functions
Avro.Generic.GenericDatumWriter< T > Class Template Reference

PreresolvingDatumWriter for writing data from GenericRecords or primitive types. For more information about performance considerations for choosing this implementation More...

Inheritance diagram for Avro.Generic.GenericDatumWriter< T >:
Avro.Generic.PreresolvingDatumWriter< T > Avro.Generic.DatumWriter< T >

List of all members.

Classes

class  GenericArrayAccess

Public Member Functions

 GenericDatumWriter (Schema schema)

Protected Member Functions

override void WriteRecordFields (object recordObj, RecordFieldWriter[] writers, Encoder encoder)
override void EnsureRecordObject (RecordSchema recordSchema, object value)
override void WriteField (object record, string fieldName, int fieldPos, WriteItem writer, Encoder encoder)
 Extracts the field value from the given object.
override WriteItem ResolveEnum (EnumSchema es)
 Serializes an enumeration.
override void WriteFixed (FixedSchema es, object value, Encoder encoder)
 Serialized a fixed object. The default implementation requires that the value is a GenericFixed object with an identical schema as es.
override bool UnionBranchMatches (Schema sc, object obj)

Detailed Description

template<T>
class Avro::Generic::GenericDatumWriter< T >

PreresolvingDatumWriter for writing data from GenericRecords or primitive types. For more information about performance considerations for choosing this implementation


Member Function Documentation

template<T >
override WriteItem Avro.Generic.GenericDatumWriter< T >.ResolveEnum ( EnumSchema  es) [inline, protected, virtual]

Serializes an enumeration.

Parameters:
esThe EnumSchema for serialization

Implements Avro.Generic.PreresolvingDatumWriter< T >.

template<T >
override void Avro.Generic.GenericDatumWriter< T >.WriteField ( object  record,
string  fieldName,
int  fieldPos,
WriteItem  writer,
Encoder  encoder 
) [inline, protected, virtual]

Extracts the field value from the given object.

Parameters:
valueThe record value from which the field needs to be extracted
fieldNameThe name of the field in the record
fieldPosThe position of field in the record
Returns:

Implements Avro.Generic.PreresolvingDatumWriter< T >.

template<T >
override void Avro.Generic.GenericDatumWriter< T >.WriteFixed ( FixedSchema  es,
object  value,
Encoder  encoder 
) [inline, protected, virtual]

Serialized a fixed object. The default implementation requires that the value is a GenericFixed object with an identical schema as es.

Parameters:
esThe schema for serialization
valueThe value to be serialized
encoderThe encoder for serialization

Implements Avro.Generic.PreresolvingDatumWriter< T >.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties