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, setProvider
public AvroSchema getGeneratedSchema()
public AvroSchemaGenerator enableLogicalTypes()
VisitorFormatWrapperImpl
enableLogicalTypes
in class VisitorFormatWrapperImpl
public AvroSchemaGenerator disableLogicalTypes()
VisitorFormatWrapperImpl
disableLogicalTypes
in class VisitorFormatWrapperImpl
Copyright © 2021 FasterXML. All rights reserved.