Constructor FixedSchema
FixedSchema(SchemaName, int, AvroLogicalType?, string?, IEnumerable<SchemaName>?, IReadOnlyDictionary<string, JsonElement>?)
Initializes a fixed schema.
public FixedSchema(SchemaName name, int size, AvroLogicalType? logicalType = null, string? doc = null, IEnumerable<SchemaName>? aliases = null, IReadOnlyDictionary<string, JsonElement>? properties = null)
Parameters
nameSchemaNameThe fixed name.
sizeintThe number of bytes per value; must not be negative.
logicalTypeAvroLogicalTypeAn optional logical type (
decimal,uuidwith size 16, ordurationwith size 12).docstringOptional documentation.
aliasesIEnumerable<SchemaName>Optional alternative names.
propertiesIReadOnlyDictionary<string, JsonElement>Optional custom properties.
Exceptions
- AvroSchemaException
The size is negative or the logical type does not apply.