Uses of Class
org.apache.avro.Resolver.Action
Packages that use Resolver.Action
-
Uses of Resolver.Action in org.apache.avro
Subclasses of Resolver.Action in org.apache.avroModifier and TypeClassDescriptionstatic classUsed for array and map schemas: the public instance variable elementAction contains the resolving action needed for the element type of an array or value top of a map.static classIn this case, there's nothing to be done for resolution: the two schemas are effectively the same.static classContains information needed to resolve enumerations.static classIn this case there is an error.static classIn this case, the writer's type needs to be promoted to the reader's.static classIn this case, the reader is a union and the writer is not.static classInstructions for resolving two record schemas.static classThis only appears insideResolver.RecordAdjust.fieldActions, i.e., the actions for adjusting the fields of a record.static classIn this case, the writer was a union.Fields in org.apache.avro declared as Resolver.ActionModifier and TypeFieldDescriptionfinal Resolver.Action[]Resolver.WriterUnion.actionsfinal Resolver.ActionResolver.ReaderUnion.actualActionfinal Resolver.ActionResolver.Container.elementActionfinal Resolver.Action[]Resolver.RecordAdjust.fieldActionsAn action for each field of the writer.Methods in org.apache.avro that return Resolver.ActionModifier and TypeMethodDescriptionstatic Resolver.ActionResolver.EnumAdjust.resolve(Schema w, Schema r, GenericData d) If writer and reader don't have same name, aResolver.ErrorAction.ErrorType.NAMES_DONT_MATCHis returned, otherwise an appropriateResolver.EnumAdjustis.static Resolver.ActionResolver.Promote.resolve(Schema w, Schema r, GenericData d) Return a promotion.static Resolver.ActionResolver.ReaderUnion.resolve(Schema w, Schema r, GenericData d, Map<Schema.SeenPair, Resolver.Action> seen) Returns aResolver.ReaderUnionaction for resolving w and r, or anResolver.ErrorActionif there is no branch in the reader that matches the writer.static Resolver.ActionUses GenericData.get() for the data param.static Resolver.ActionResolver.resolve(Schema writer, Schema reader, GenericData data) Returns aResolver.Actiontree for resolving the writer schema writer and the reader schema reader.static Resolver.ActionResolver.WriterUnion.resolve(Schema writeSchema, Schema readSchema, GenericData data, Map<Schema.SeenPair, Resolver.Action> seen) Method parameters in org.apache.avro with type arguments of type Resolver.ActionModifier and TypeMethodDescriptionstatic Resolver.ActionResolver.ReaderUnion.resolve(Schema w, Schema r, GenericData d, Map<Schema.SeenPair, Resolver.Action> seen) Returns aResolver.ReaderUnionaction for resolving w and r, or anResolver.ErrorActionif there is no branch in the reader that matches the writer.static Resolver.ActionResolver.WriterUnion.resolve(Schema writeSchema, Schema readSchema, GenericData data, Map<Schema.SeenPair, Resolver.Action> seen) Constructors in org.apache.avro with parameters of type Resolver.ActionModifierConstructorDescriptionContainer(Schema w, Schema r, GenericData d, Resolver.Action e) ReaderUnion(Schema w, Schema r, GenericData d, int firstMatch, Resolver.Action actual)