Avro C#
|
Defines the interface for a class that provides access to a map implementation. More...
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) |
Writes each value in the given map to the encoder using the valueWriter . The default implementation of this method requires that the map is an IDictionary<string, object>. More... | |
Defines the interface for a class that provides access to a map implementation.
void Avro.Generic.PreresolvingDatumWriter< T >.MapAccess.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>.
value | Ensures that this object is a valid map. |
Implemented in Avro.Generic.PreresolvingDatumWriter< T >.DictionaryMapAccess.
long Avro.Generic.PreresolvingDatumWriter< T >.MapAccess.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.
value | The map object whose size is desired |
Implemented in Avro.Generic.PreresolvingDatumWriter< T >.DictionaryMapAccess.
void Avro.Generic.PreresolvingDatumWriter< T >.MapAccess.WriteMapValues | ( | object | map, |
WriteItem | valueWriter, | ||
Encoder | encoder | ||
) |
Writes each value in the given map to the encoder using the valueWriter . The default implementation of this method requires that the map is an IDictionary<string, object>.
map | Map object to write the contents of. |
valueWriter | Value writer to send the map to. |
encoder | Encoder to the write the map values to. |
Implemented in Avro.Generic.PreresolvingDatumWriter< T >.DictionaryMapAccess.