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

Inherited by Avro.Specific.SpecificDatumReader< T >.SpecificRecordAccess.

List of all members.

Public Member Functions

object CreateRecord (object reuse)
 Creates a new record object. Derived classes can override this to return an object of their choice.
object GetField (object record, string fieldName, int fieldPos)
 Used by the default implementation of ReadRecord() to get the existing field of a record object. The derived classes can override this to make their own interpretation of the record object.
void AddField (object record, string fieldName, int fieldPos, object fieldValue)
 Used by the default implementation of ReadRecord() to add a field to a record object. The derived classes can override this to suit their own implementation of the record object.

template<T>
interface Avro::Generic::PreresolvingDatumReader< T >::RecordAccess


Member Function Documentation

template<T >
void Avro.Generic.PreresolvingDatumReader< T >.RecordAccess.AddField ( object  record,
string  fieldName,
int  fieldPos,
object  fieldValue 
)

Used by the default implementation of ReadRecord() to add a field to a record object. The derived classes can override this to suit their own implementation of the record object.

Parameters:
recordThe record object to be probed into. This is guaranteed to be one that was returned by a previous call to CreateRecord.
fieldNameThe name of the field to probe.
fieldPosfield number
fieldValueThe value to be added for the field
template<T >
object Avro.Generic.PreresolvingDatumReader< T >.RecordAccess.CreateRecord ( object  reuse)

Creates a new record object. Derived classes can override this to return an object of their choice.

Parameters:
reuseIf appropriate, will reuse this object instead of constructing a new one
Returns:
template<T >
object Avro.Generic.PreresolvingDatumReader< T >.RecordAccess.GetField ( object  record,
string  fieldName,
int  fieldPos 
)

Used by the default implementation of ReadRecord() to get the existing field of a record object. The derived classes can override this to make their own interpretation of the record object.

Parameters:
recordThe record object to be probed into. This is guaranteed to be one that was returned by a previous call to CreateRecord.
fieldNameThe name of the field to probe.
fieldPosfield number
Returns:
The value of the field, if found. Null otherwise.

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