SetArrayOfGenericRecord Method
SetArrayOfGenericRecord(string, IGenericRecord?[]?)
Adds an array of IGeneric
Declaration
IGenericRecordBuilder SetArrayOfGenericRecord(string fieldname, IGenericRecord?[]? value)
Parameters
string | fieldname | The name of the field. |
IGeneric |
value | The value of the field. |
Returns
Remarks
It is only legal to set a generic record object produced by the same type of builder. For instance, a compact generic record can only accept a compact generic record. Trying to set a different kind of generic record results in a exception.
It is legal to set the field again only when the builder is created with
New
This method allows nested structures; subclasses should also be
created as IGeneric
Exceptions
Serialization |
The build has been initialized with a
schema, and |