| Modifier and Type | Field and Description |
|---|---|
| protected Schema | |
| protected 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 | |
| protected final VisitorFormatWrapperImpl |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Schema | |
| public void | |
| public void | |
| public void | property(BeanProperty writer)
Overrides com. Implements com. Callback method called when a POJO property is being traversed. |
| public void | property(String name, JsonFormatVisitable handler, JavaType type)
Overrides com. Implements com. 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 Schema _avroSchema | |
| _fields | back to summary |
|---|---|
| protected 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 | |
| _visitorWrapper | back to summary |
|---|---|
| protected final VisitorFormatWrapperImpl _visitorWrapper | |
| RecordVisitor | back to summary |
|---|---|
| public RecordVisitor(SerializerProvider p, JavaType type, VisitorFormatWrapperImpl visitorWrapper) | |
| builtAvroSchema | back to summary |
|---|---|
| public Schema builtAvroSchema() Implements com.
| |
| optionalProperty | back to summary |
|---|---|
| public void optionalProperty(BeanProperty writer) throws JsonMappingException Overrides com. Implements com.
| |
| optionalProperty | back to summary |
|---|---|
| public void optionalProperty(String name, JsonFormatVisitable handler, JavaType type) throws JsonMappingException Overrides com. Implements com.
| |
| property | back to summary |
|---|---|
| public void property(BeanProperty writer) throws JsonMappingException Overrides com. Implements com. Doc from com. Callback method called when a POJO property is being traversed.
| |
| property | back to summary |
|---|---|
| public void property(String name, JsonFormatVisitable handler, JavaType type) throws JsonMappingException Overrides com. Implements com. Doc from com. 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. | |