Top Description Fields Constructors Methods
tools.jackson.dataformat.avro.schema

public Class AvroSchemaGenerator

extends VisitorFormatWrapperImpl
Class Inheritance
Imports
tools.jackson.dataformat.avro.AvroSchema

Class that can generate an 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.

Field Summary

Inherited from tools.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl:
_builder_context_logicalTypesEnabled_schemas_valueSchema_writeEnumAsStringDEFAULT_ENUM_AS_STRINGDEFAULT_LOGICAL_TYPES_ENABLED

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AvroSchemaGenerator
public AvroSchemaGenerator
public AvroSchemaGenerator
public AvroSchemaGenerator
public AvroSchema
Inherited from tools.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl:
_throwUnsupported_throwUnsupportedcreateChildWrapperexpectAnyFormatexpectArrayFormatexpectAvroFormatexpectBooleanFormatexpectIntegerFormatexpectMapFormatexpectNullFormatexpectNumberFormatexpectObjectFormatexpectStringFormatgetAvroSchemagetContextgetSchemasisLogicalTypesEnabledisWriteEnumAsStringEnabledsetContext

Constructor Detail

AvroSchemaGeneratorback to summary
public AvroSchemaGenerator()

Method Detail

disableLogicalTypesback to summary
public AvroSchemaGenerator disableLogicalTypes()

Overrides tools.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl.disableLogicalTypes.

Doc from tools.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl.disableLogicalTypes.

Disables Avro schema with Logical Types generation.

Annotations
@Override
disableWriteEnumAsStringback to summary
public AvroSchemaGenerator disableWriteEnumAsString()

Overrides tools.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl.disableWriteEnumAsString.

Doc from tools.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl.disableWriteEnumAsString.

Disable Java enum to Avro string mapping.

Annotations
@Override
enableLogicalTypesback to summary
public AvroSchemaGenerator enableLogicalTypes()

Overrides tools.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl.enableLogicalTypes.

Doc from tools.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl.enableLogicalTypes.

Enables Avro schema with Logical Types generation.

Annotations
@Override
enableWriteEnumAsStringback to summary
public AvroSchemaGenerator enableWriteEnumAsString()

Overrides tools.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl.enableWriteEnumAsString.

Doc from tools.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl.enableWriteEnumAsString.

Enable Java enum to Avro string mapping.

Annotations
@Override
getGeneratedSchemaback to summary
public AvroSchema getGeneratedSchema()