public static class AvroUtils.AvroSchemaHelper
extends Object
param: avroSchema The schema in which to search for fields. Must be of type RECORD.
param: avroPath The seq of parent field names leading to avroSchema
.
param: positionalFieldMatch If true, perform field matching in a positional fashion
(structural comparison between schemas, ignoring names);
otherwise, perform field matching using field names.
Constructor and Description |
---|
AvroSchemaHelper(org.apache.avro.Schema avroSchema,
scala.collection.Seq<String> avroPath,
boolean positionalFieldMatch) |
Modifier and Type | Method and Description |
---|---|
scala.Option<org.apache.avro.Schema.Field> |
getAvroField(String fieldName,
int catalystPos)
Get the Avro field corresponding to the provided Catalyst field name/position, if any.
|