Class Resolver.Promote

java.lang.Object
org.apache.avro.Resolver.Action
org.apache.avro.Resolver.Promote
Enclosing class:
Resolver

public static class Resolver.Promote extends Resolver.Action
In this case, the writer's type needs to be promoted to the reader's. These are constructed by resolve(org.apache.avro.Schema, org.apache.avro.Schema, org.apache.avro.generic.GenericData), which will only construct one when the writer's and reader's schemas are different (ie, no "self promotion"), and whent the promotion is one allowed by the Avro spec.