Class GenericRecord
A record in the generic data model: a schema and one AvroValue per field.
public sealed class GenericRecord : IEquatable<GenericRecord>
- Inheritance
-
GenericRecord
- Implements
- Inherited Members
Constructors
- GenericRecord(RecordSchema)
Initializes a record whose fields are all
null.
Properties
- this[int]
Gets or sets a field value by position.
- this[string]
Gets or sets a field value by name.
- Schema
Gets the record schema.
- Values
Gets the values, in field order.
Methods
- Equals(GenericRecord?)
Compares schema full names and field values (see Equals(AvroValue)).
- Equals(object?)
Determines whether the specified object is equal to the current object.
- GetHashCode()
Serves as the default hash function.
- ToString()
Returns a string that represents the current object.
- TryGetValue(int, out AvroValue)
Gets a field value by position, if the record has a field at that position.
- TryGetValue(string, out AvroValue)
Gets a field value by name, if the field exists.