AvroSchema for a given Java POJO,
using definitions Jackson would use for serialization.
An instance is typically given to
tools.jackson.databind.ObjectMapper#acceptJsonFormatVisitor
which will invoke necessary callbacks.
For default configuration of things like "Logical Types support", see Javadocs
of VisitorFormatWrapperImpl.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AvroSchemaGenerator | disableLogicalTypes()
Overrides tools. Disables Avro schema with Logical Types generation. |
| public AvroSchemaGenerator | disableWriteEnumAsString()
Overrides tools. Disable Java enum to Avro string mapping. |
| public AvroSchemaGenerator | enableLogicalTypes()
Overrides tools. Enables Avro schema with Logical Types generation. |
| public AvroSchemaGenerator | enableWriteEnumAsString()
Overrides tools. Enable Java enum to Avro string mapping. |
| public AvroSchema |
| AvroSchemaGenerator | back to summary |
|---|---|
| public AvroSchemaGenerator() | |
| disableLogicalTypes | back to summary |
|---|---|
| public AvroSchemaGenerator disableLogicalTypes() Overrides tools. Doc from tools. Disables Avro schema with Logical Types generation.
| |
| disableWriteEnumAsString | back to summary |
|---|---|
| public AvroSchemaGenerator disableWriteEnumAsString() Overrides tools. Doc from tools. Disable Java enum to Avro string mapping.
| |
| enableLogicalTypes | back to summary |
|---|---|
| public AvroSchemaGenerator enableLogicalTypes() Overrides tools. Doc from tools. Enables Avro schema with Logical Types generation.
| |
| enableWriteEnumAsString | back to summary |
|---|---|
| public AvroSchemaGenerator enableWriteEnumAsString() Overrides tools. Doc from tools. Enable Java enum to Avro string mapping.
| |
| getGeneratedSchema | back to summary |
|---|---|
| public AvroSchema getGeneratedSchema() | |