Perform type resolution: would PFA objects of type that
be accepted where a PFA object of type this
is expected?
Perform type resolution: would PFA objects of type that
be accepted where a PFA object of type this
is expected?
If x.accepts(y) && y.accepts(x)
, then x
and y
are equal. In general, acceptability is not symmetric.
the given argument to be accepted or rejected
if true
, require named types to have the same name (nominal type checking); if false
, consider types with the same structure but different names to be equivalent (structural type checking)
true
if that
is an acceptable substitute for this
(or is exactly the same); false
if incompatible
Optional set of alternate names that can be resolved to this type (for Avro schema resolution backward compatibility).
Optional set of alternate names that can be resolved to this type (for Avro schema resolution backward compatibility).
Return this
if an AvroType, raise an IllegalArgumentException
otherwise.
Optional documentation string.
Optional documentation string.
Field requested by name, raising NoSuchElementException
if not present.
Field requested by name, raising NoSuchElementException
if not present.
name of the requested field
Names of the fields, in order.
Field requested by name, returning None
if not present.
Field requested by name, returning None
if not present.
name of the requested field
Field references, in order.
The a fully qualified name of this type, including the optional namespace.
The a fully qualified name of this type, including the optional namespace.
Convert the type to a Jackson node.
Convert the type to a Jackson node.
used to avoid infinite loops on recursive record types.
The "name" of the type, which is used as a key in tagged unions.
The "name" of the type, which is used as a key in tagged unions.
Optional namespace.
Optional namespace.
wrapped Avro library org.apache.avro.Schema
object.
wrapped Avro library org.apache.avro.Schema
object.
Convert the type to a JSON string (suitable for an Avro ".
Convert the type to a JSON string (suitable for an Avro ".avsc" file).
Calls toJson()
.
Calls toJson()
.
Avro "record" type for inhomogeneous collections of named (and required) fields.
See companion object for a constructor that does not require Avro library objects.