public class AvroSchemaGenerator extends VisitorFormatWrapperImpl
AvroSchema for a given Java POJO,
using definitions Jackson would use for serialization.
An instance is typically given to
ObjectMapper.acceptJsonFormatVisitor(java.lang.Class<?>, com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper)
which will invoke necessary callbacks._builder, _logicalTypesEnabled, _provider, _schemas, _valueSchema| Constructor and Description |
|---|
AvroSchemaGenerator() |
| Modifier and Type | Method and Description |
|---|---|
AvroSchemaGenerator |
disableLogicalTypes()
Disables Avro schema with Logical Types generation.
|
AvroSchemaGenerator |
enableLogicalTypes()
Enables Avro schema with Logical Types generation.
|
AvroSchema |
getGeneratedSchema() |
_throwUnsupported, _throwUnsupported, createChildWrapper, expectAnyFormat, expectArrayFormat, expectAvroFormat, expectBooleanFormat, expectIntegerFormat, expectMapFormat, expectNullFormat, expectNumberFormat, expectObjectFormat, expectStringFormat, getAvroSchema, getProvider, getSchemas, isLogicalTypesEnabled, setProviderpublic AvroSchema getGeneratedSchema()
public AvroSchemaGenerator enableLogicalTypes()
VisitorFormatWrapperImplenableLogicalTypes in class VisitorFormatWrapperImplpublic AvroSchemaGenerator disableLogicalTypes()
VisitorFormatWrapperImpldisableLogicalTypes in class VisitorFormatWrapperImplCopyright © 2022 FasterXML. All rights reserved.