Kinetica C# API
Version 7.2.3.0
|
Public Member Functions | |
void | EnsureMapObject (object value) |
Checks if the given object is a map. More... | |
long | GetMapSize (object value) |
Returns the size of the map object. More... | |
void | WriteMapValues (object map, WriteItem valueWriter, Encoder encoder) |
Returns the contents of the given map object. More... | |
Definition at line 324 of file PreresolvingDatumWriter.cs.
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 |
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 | ||
) |
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.
value | The map object whose size is desired |
Implemented in Avro.Generic.PreresolvingDatumWriter< T >.DictionaryMapAccess.