Inherited by Avro.Generic.GenericDatumWriter< T >.GenericArrayAccess, and Avro.Specific.SpecificDatumWriter< T >.SpecificArrayAccess.
List of all members.
Public Member Functions |
void | EnsureArrayObject (object value) |
| Checks if the given object is an array. If it is a valid array, this function returns normally. Otherwise, it throws an exception. The default implementation checks if the value is an array.
|
long | GetArrayLength (object value) |
| Returns the length of an array. The default implementation requires the object to be an array of objects and returns its length. The defaul implementation gurantees that EnsureArrayObject() has been called on the value before this function is called.
|
void | WriteArrayValues (object array, WriteItem valueWriter, Encoder encoder) |
| Returns the element at the given index from the given array object. The default implementation requires that the value is an object array and returns the element in that array. The defaul implementation gurantees that EnsureArrayObject() has been called on the value before this function is called.
|
template<T>
interface Avro::Generic::PreresolvingDatumWriter< T >::ArrayAccess
Member Function Documentation
Checks if the given object is an array. If it is a valid array, this function returns normally. Otherwise, it throws an exception. The default implementation checks if the value is an array.
- Parameters:
-
Returns the length of an array. The default implementation requires the object to be an array of objects and returns its length. The defaul implementation gurantees that EnsureArrayObject() has been called on the value before this function is called.
- Parameters:
-
value | The object whose array length is required |
- Returns:
- The array length of the given object
Returns the element at the given index from the given array object. The default implementation requires that the value is an object array and returns the element in that array. The defaul implementation gurantees that EnsureArrayObject() has been called on the value before this function is called.
- Parameters:
-
value | The array object |
index | The index to look for |
- Returns:
- The array element at the index
The documentation for this interface was generated from the following file:
- src/apache/main/Generic/PreresolvingDatumWriter.cs