Method Transform
Transform(AvroSchema, in AvroValue, AvroFieldTransform, int)
Returns value with the values that transform replaces.
public static AvroValue Transform(AvroSchema schema, in AvroValue value, AvroFieldTransform transform, int maxDepth = 128)
Parameters
schemaAvroSchemaThe value's schema.
valueAvroValueThe value.
transformAvroFieldTransformCalled for each value inside a record field; returns the value to keep.
maxDepthintThe deepest nesting of records, arrays, maps and unions accepted, so a cyclic record cannot recurse without bound.
Returns
Exceptions
- AvroException
The value does not match the schema, or it is nested more deeply than
maxDepth.