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

PreresolvingDatumWriter for writing data from ISpecificRecord classes. For more information about performance considerations for choosing this implementation More...

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

List of all members.

Classes

class  SpecificArrayAccess

Public Member Functions

 SpecificDatumWriter (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 schema, 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::Specific::SpecificDatumWriter< T >

PreresolvingDatumWriter for writing data from ISpecificRecord classes. For more information about performance considerations for choosing this implementation


Member Function Documentation

template<T >
override WriteItem Avro.Specific.SpecificDatumWriter< 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.Specific.SpecificDatumWriter< 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.Specific.SpecificDatumWriter< 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