Table of Contents

Method Transform

Namespace
AvroSharp.Generic
Assembly
AvroSharp.dll

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

schema AvroSchema

The value's schema.

value AvroValue

The value.

transform AvroFieldTransform

Called for each value inside a record field; returns the value to keep.

maxDepth int

The deepest nesting of records, arrays, maps and unions accepted, so a cyclic record cannot recurse without bound.

Returns

AvroValue

Exceptions

AvroException

The value does not match the schema, or it is nested more deeply than maxDepth.