Avro C#
 All Classes Namespaces Functions Variables Enumerations Properties
Public Member Functions
Avro.Generic.PreresolvingDatumWriter< T >.ArrayAccess Interface Reference

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

template<T >
void Avro.Generic.PreresolvingDatumWriter< T >.ArrayAccess.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.

Parameters:
value
template<T >
long Avro.Generic.PreresolvingDatumWriter< T >.ArrayAccess.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.

Parameters:
valueThe object whose array length is required
Returns:
The array length of the given object
template<T >
void Avro.Generic.PreresolvingDatumWriter< T >.ArrayAccess.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.

Parameters:
valueThe array object
indexThe index to look for
Returns:
The array element at the index

The documentation for this interface was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties