| Modifier and Type | Field and Description |
|---|---|
| protected final Schema | |
| protected final boolean | |
| protected final List | |
| protected final boolean | _overridden
Tracks if the schema for this record has been overridden (by an annotation or other means),
and calls to the |
| protected final JavaType | |
| private final Schema | _typeSchema
When Avro schema for this JavaType ( |
| protected final VisitorFormatWrapperImpl |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Schema | |
| private static List | |
| public void | |
| public void | |
| public void | property(BeanProperty writer)
Overrides tools. Implements tools. Callback method called when a POJO property is being traversed. |
| public void | property(String name, JsonFormatVisitable handler, JavaType type)
Overrides tools. Implements tools. Callback method called when a non-POJO property (typically something
like an Enum entry of |
| protected Schema | Returns: A schema modified so the first branch matches the type ofdefaultValue; otherwise, schema is returned
unmodified.Schema to reorder; If schema, JsonNode null or not a UNION, then it is returned unmodified.Default value to match with the union defaultValue)A union schema with a default value must always have the schema branch corresponding to the default value first, or Avro will print a warning complaining that the default value is not compatible. |
| protected Schema. |
| _avroSchema | back to summary |
|---|---|
| protected final Schema _avroSchema | |
| _cfgAddNullDefaults | back to summary |
|---|---|
| protected final boolean _cfgAddNullDefaults | |
| _fields | back to summary |
|---|---|
| protected final List<Schema. | |
| _overridden | back to summary |
|---|---|
| protected final boolean _overridden Tracks if the schema for this record has been overridden (by an annotation or other means),
and calls to the | |
| _type | back to summary |
|---|---|
| protected final JavaType _type | |
| _typeSchema | back to summary |
|---|---|
| private final Schema _typeSchema When Avro schema for this JavaType (
| |
| _visitorWrapper | back to summary |
|---|---|
| protected final VisitorFormatWrapperImpl _visitorWrapper | |
| RecordVisitor | back to summary |
|---|---|
| public RecordVisitor(SerializationContext ctxt, JavaType type, VisitorFormatWrapperImpl visitorWrapper) | |
| builtAvroSchema | back to summary |
|---|---|
| public Schema builtAvroSchema() Implements tools.
| |
| deduplicateByReference | back to summary |
|---|---|
| private static List | |
| optionalProperty | back to summary |
|---|---|
| public void optionalProperty(BeanProperty writer) Overrides tools. Implements tools.
| |
| optionalProperty | back to summary |
|---|---|
| public void optionalProperty(String name, JsonFormatVisitable handler, JavaType type) Overrides tools. Implements tools.
| |
| property | back to summary |
|---|---|
| public void property(BeanProperty writer) Overrides tools. Implements tools. Doc from tools. Callback method called when a POJO property is being traversed.
| |
| property | back to summary |
|---|---|
| public void property(String name, JsonFormatVisitable handler, JavaType type) Overrides tools. Implements tools. Doc from tools. Callback method called when a non-POJO property (typically something
like an Enum entry of
| |
| reorderUnionToMatchDefaultType | back to summary |
|---|---|
| protected Schema reorderUnionToMatchDefaultType(Schema schema, JsonNode defaultValue) A union schema with a default value must always have the schema branch corresponding to the default value first, or Avro will print a
warning complaining that the default value is not compatible. If | |
| schemaFieldForWriter | back to summary |
|---|---|
| protected Schema. | |