Package org.apache.avro
Class Resolver.Action
java.lang.Object
org.apache.avro.Resolver.Action
- Direct Known Subclasses:
Resolver.Container
,Resolver.DoNothing
,Resolver.EnumAdjust
,Resolver.ErrorAction
,Resolver.Promote
,Resolver.ReaderUnion
,Resolver.RecordAdjust
,Resolver.Skip
,Resolver.WriterUnion
- Enclosing class:
Resolver
An abstract class for an action to be taken to resolve a writer's schema
(found in public instance variable writer) against a reader's schema
(in reader). Ordinarily, neither field can be null, except
that the reader field can be null in a
Resolver.Skip
, which
is used to skip a field in a writer's record that doesn't exist in the
reader's (and thus there is no reader schema to resolve to).-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal Conversion
<?> If the reader has a conversion that needs to be applied, it's stored here for fast access, otherwise this will be null.final LogicalType
If the reader has a logical type, it's stored here for fast access, otherwise this will be null.final Schema
final Resolver.Action.Type
final Schema
-
Constructor Summary
ModifierConstructorDescriptionprotected
Action
(Schema w, Schema r, GenericData data, Resolver.Action.Type t) -
Method Summary
-
Field Details
-
writer
-
reader
-
type
-
logicalType
If the reader has a logical type, it's stored here for fast access, otherwise this will be null. -
conversion
If the reader has a conversion that needs to be applied, it's stored here for fast access, otherwise this will be null.
-
-
Constructor Details
-
Action
-