Uses of Class
tools.jackson.dataformat.avro.AvroSchema
Packages that use AvroSchema
Package
Description
Package that contains codec implementations (and support pieces)
that build on Apache avro library.
Package that contains functionality for generating Avro Schemas
out of POJOs as seen by Jackson databind; similar to how Jackson's
JSON Schema generation works but producing different output.
-
Uses of AvroSchema in tools.jackson.dataformat.avro
Fields in tools.jackson.dataformat.avro declared as AvroSchemaModifier and TypeFieldDescriptionprotected final AvroSchemaAvroGenerator._rootSchemaprotected AvroSchemaAvroParser._rootSchemaMethods in tools.jackson.dataformat.avro that return AvroSchemaModifier and TypeMethodDescriptionAvroGenerator.getSchema()AvroParser.getSchema()Factory method for constructingAvroSchemaby introspecting given POJO type and building schema that contains specified properties.AvroMapper.schemaFor(tools.jackson.databind.JavaType type) Factory method for constructingAvroSchemaby introspecting given POJO type and building schema that contains specified properties.AvroMapper.schemaFrom(File schemaFile) Convenience method for readingAvroSchemafrom given encoded JSON representation.AvroMapper.schemaFrom(InputStream in) Method for reading an Avro Schema from givenInputStream, and once done (successfully or not), closing the stream.AvroMapper.schemaFrom(String schemaAsString) Convenience method for readingAvroSchemafrom given encoded JSON representation.AvroSchema.withReaderSchema(AvroSchema readerSchema) Method that will consider this schema instance (used as so-called "Writer Schema"), and specified "Reader Schema" instance, and will either construct a new schema with appropriate translations, to use for reading (if reader and writer schemas are not same); or, if schemas are the same, return `this`.AvroSchema.withUnsafeReaderSchema(AvroSchema readerSchema) Similar towithReaderSchema(tools.jackson.dataformat.avro.AvroSchema)but will NOT verify compatibility of schemas: this means that certain problems (such as missing default value for a newly added field) that would be caught at construction may be surfaced later when using schema.Methods in tools.jackson.dataformat.avro with parameters of type AvroSchemaModifier and TypeMethodDescriptionprotected abstract voidAvroParser._initSchema(AvroSchema schema) protected voidAvroParser.setSchema(AvroSchema schema) AvroSchema.withReaderSchema(AvroSchema readerSchema) Method that will consider this schema instance (used as so-called "Writer Schema"), and specified "Reader Schema" instance, and will either construct a new schema with appropriate translations, to use for reading (if reader and writer schemas are not same); or, if schemas are the same, return `this`.AvroSchema.withUnsafeReaderSchema(AvroSchema readerSchema) Similar towithReaderSchema(tools.jackson.dataformat.avro.AvroSchema)but will NOT verify compatibility of schemas: this means that certain problems (such as missing default value for a newly added field) that would be caught at construction may be surfaced later when using schema.Constructors in tools.jackson.dataformat.avro with parameters of type AvroSchemaModifierConstructorDescriptionAvroGenerator(tools.jackson.core.ObjectWriteContext writeCtxt, tools.jackson.core.io.IOContext ioCtxt, int streamWriteFeatures, int avroFeatures, ApacheCodecRecycler apacheCodecRecycler, AvroSchema schema, OutputStream output) -
Uses of AvroSchema in tools.jackson.dataformat.avro.apacheimpl
Constructors in tools.jackson.dataformat.avro.apacheimpl with parameters of type AvroSchemaModifierConstructorDescriptionApacheAvroParserImpl(tools.jackson.core.ObjectReadContext readCtxt, tools.jackson.core.io.IOContext ioCtxt, int parserFeatures, int avroFeatures, ApacheCodecRecycler apacheCodecRecycler, AvroSchema schema, byte[] buffer, int offset, int len) ApacheAvroParserImpl(tools.jackson.core.ObjectReadContext readCtxt, tools.jackson.core.io.IOContext ioCtxt, int parserFeatures, int avroFeatures, ApacheCodecRecycler apacheCodecRecycler, AvroSchema schema, InputStream in) -
Uses of AvroSchema in tools.jackson.dataformat.avro.deser
Methods in tools.jackson.dataformat.avro.deser with parameters of type AvroSchemaConstructors in tools.jackson.dataformat.avro.deser with parameters of type AvroSchemaModifierConstructorDescriptionprotectedAvroParserImpl(tools.jackson.core.ObjectReadContext readCtxt, tools.jackson.core.io.IOContext ioCtxt, int parserFeatures, int avroFeatures, AvroSchema schema) JacksonAvroParserImpl(tools.jackson.core.ObjectReadContext readCtxt, tools.jackson.core.io.IOContext ioCtxt, int parserFeatures, int avroFeatures, AvroSchema schema, byte[] data, int offset, int len) JacksonAvroParserImpl(tools.jackson.core.ObjectReadContext readCtxt, tools.jackson.core.io.IOContext ioCtxt, int parserFeatures, int avroFeatures, AvroSchema schema, InputStream in) -
Uses of AvroSchema in tools.jackson.dataformat.avro.schema
Methods in tools.jackson.dataformat.avro.schema that return AvroSchemaMethods in tools.jackson.dataformat.avro.schema with parameters of type AvroSchemaModifier and TypeMethodDescriptionvoidVisitorFormatWrapperImpl.expectAvroFormat(AvroSchema schema)