Avro C#
 All Classes Namespaces Functions Variables Enumerations Properties
Public Member Functions | List of all members
Avro.Generic.PreresolvingDatumWriter< T >.DictionaryMapAccess Class Reference
Inheritance diagram for Avro.Generic.PreresolvingDatumWriter< T >.DictionaryMapAccess:
Avro.Generic.PreresolvingDatumWriter< T >.MapAccess

Public Member Functions

void EnsureMapObject (object value)
 Checks if the given object is a map. If it is a valid map, this function returns normally. Otherwise, it throws an exception. The default implementation checks if the value is an IDictionary<string, object>. More...
 
long GetMapSize (object value)
 Returns the size of the map object. The default implementation gurantees that EnsureMapObject has been successfully called with the given value. The default implementation requires the value to be an IDictionary<string, object> and returns the number of elements in it. More...
 
void WriteMapValues (object map, WriteItem valueWriter, Encoder encoder)
 Returns the contents of the given map object. The default implementation guarantees that EnsureMapObject has been called with the given value. The defualt implementation of this method requires that the value is an IDictionary<string, object> and returns its contents. More...
 

Member Function Documentation

void Avro.Generic.PreresolvingDatumWriter< T >.DictionaryMapAccess.EnsureMapObject ( object  value)
inline

Checks if the given object is a map. If it is a valid map, this function returns normally. Otherwise, it throws an exception. The default implementation checks if the value is an IDictionary<string, object>.

Parameters
value

Implements Avro.Generic.PreresolvingDatumWriter< T >.MapAccess.

long Avro.Generic.PreresolvingDatumWriter< T >.DictionaryMapAccess.GetMapSize ( object  value)
inline

Returns the size of the map object. The default implementation gurantees that EnsureMapObject has been successfully called with the given value. The default implementation requires the value to be an IDictionary<string, object> and returns the number of elements in it.

Parameters
valueThe map object whose size is desired
Returns
The size of the given map object

Implements Avro.Generic.PreresolvingDatumWriter< T >.MapAccess.

void Avro.Generic.PreresolvingDatumWriter< T >.DictionaryMapAccess.WriteMapValues ( object  map,
WriteItem  valueWriter,
Encoder  encoder 
)
inline

Returns the contents of the given map object. The default implementation guarantees that EnsureMapObject has been called with the given value. The defualt implementation of this method requires that the value is an IDictionary<string, object> and returns its contents.

Parameters
valueThe map object whose size is desired
Returns
The contents of the given map object

Implements Avro.Generic.PreresolvingDatumWriter< T >.MapAccess.


The documentation for this class was generated from the following file: