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