NewBuilder Method
NewBuilder()
Creates a new GenericRecordBuilder for this record's schema, with all the fields being non-initialized.
Declaration
IGenericRecordBuilder NewBuilder()
Returns
IGenericRecordBuilder | A new GenericRecordBuilder. |
Remarks
This method is a convenience method to get a builder without creating the schema for the type, but by re-using the schema of this record. See Compact(string) for creating a generic record in compact form, with a new schema.
Examples
var rec2 = rec1.NewBuilder() .SetBoolean("field-bool", true) .SetInt32("field-int", 1234) .Build();