Top Description Fields Constructors Methods
com.fasterxml.jackson.dataformat.avro.schema

public Class AvroSchemaGenerator

extends VisitorFormatWrapperImpl
Class Inheritance
Imports
com.fasterxml.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 com.fasterxml.jackson.databind.ObjectMapper#acceptJsonFormatVisitor which will invoke necessary callbacks.

Field Summary

Inherited from com.fasterxml.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl:
_builder_logicalTypesEnabled_provider_schemas_valueSchema_writeEnumAsString

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 com.fasterxml.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl:
_throwUnsupported_throwUnsupportedcreateChildWrapperexpectAnyFormatexpectArrayFormatexpectAvroFormatexpectBooleanFormatexpectIntegerFormatexpectMapFormatexpectNullFormatexpectNumberFormatexpectObjectFormatexpectStringFormatgetAvroSchemagetProvidergetSchemasisLogicalTypesEnabledisWriteEnumAsStringEnabledsetProvider

Constructor Detail

AvroSchemaGeneratorback to summary
public AvroSchemaGenerator()

Method Detail

disableLogicalTypesback to summary
public AvroSchemaGenerator disableLogicalTypes()

Overrides com.fasterxml.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl.disableLogicalTypes.

Doc from com.fasterxml.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl.disableLogicalTypes.

Disables Avro schema with Logical Types generation.

Annotations
@Override
disableWriteEnumAsStringback to summary
public AvroSchemaGenerator disableWriteEnumAsString()

Overrides com.fasterxml.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl.disableWriteEnumAsString.

Doc from com.fasterxml.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl.disableWriteEnumAsString.

Disable Java enum to Avro string mapping.

Annotations
@Override
enableLogicalTypesback to summary
public AvroSchemaGenerator enableLogicalTypes()

Overrides com.fasterxml.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl.enableLogicalTypes.

Doc from com.fasterxml.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl.enableLogicalTypes.

Enables Avro schema with Logical Types generation.

Annotations
@Override
enableWriteEnumAsStringback to summary
public AvroSchemaGenerator enableWriteEnumAsString()

Overrides com.fasterxml.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl.enableWriteEnumAsString.

Doc from com.fasterxml.jackson.dataformat.avro.schema.VisitorFormatWrapperImpl.enableWriteEnumAsString.

Enable Java enum to Avro string mapping.

Annotations
@Override
getGeneratedSchemaback to summary
public AvroSchema getGeneratedSchema()