public static class AvroUtils.AvroSchemaHelper
extends Object
param: avroSchema The schema in which to search for fields. Must be of type RECORD.
| Constructor and Description |
|---|
AvroSchemaHelper(org.apache.avro.Schema avroSchema) |
| Modifier and Type | Method and Description |
|---|---|
scala.Option<org.apache.avro.Schema.Field> |
getFieldByName(String name)
Extract a single field from the contained avro schema which has the desired field name,
performing the matching with proper case sensitivity according to SQLConf.resolver.
|
public scala.Option<org.apache.avro.Schema.Field> getFieldByName(String name)
name - The name of the field to search for.Some(match) if a matching Avro field is found, otherwise None.