Class DefinedSchemas
java.lang.Object
tools.jackson.dataformat.avro.schema.DefinedSchemas
Simple container for Schemas that have already been generated during
generation process; used to share definitions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<tools.jackson.databind.JavaType,org.apache.avro.Schema> protected tools.jackson.databind.SerializationContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSchema(tools.jackson.databind.JavaType type, org.apache.avro.Schema schema) org.apache.avro.SchemafindSchema(tools.jackson.databind.JavaType type) tools.jackson.databind.SerializationContextvoidsetContext(tools.jackson.databind.SerializationContext ctxt)
-
Field Details
-
_schemas
-
_serializationContext
protected tools.jackson.databind.SerializationContext _serializationContext
-
-
Constructor Details
-
DefinedSchemas
public DefinedSchemas()
-
-
Method Details
-
setContext
public void setContext(tools.jackson.databind.SerializationContext ctxt) -
getContext
public tools.jackson.databind.SerializationContext getContext() -
findSchema
public org.apache.avro.Schema findSchema(tools.jackson.databind.JavaType type) -
addSchema
public void addSchema(tools.jackson.databind.JavaType type, org.apache.avro.Schema schema)
-