java.lang.Object
tools.jackson.dataformat.avro.schema.DefinedSchemas

public class DefinedSchemas extends Object
Simple container for Schemas that have already been generated during generation process; used to share definitions.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Map<tools.jackson.databind.JavaType,org.apache.avro.Schema>
     
    protected tools.jackson.databind.SerializationContext
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addSchema(tools.jackson.databind.JavaType type, org.apache.avro.Schema schema)
     
    org.apache.avro.Schema
    findSchema(tools.jackson.databind.JavaType type)
     
    tools.jackson.databind.SerializationContext
     
    void
    setContext(tools.jackson.databind.SerializationContext ctxt)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _schemas

      protected final Map<tools.jackson.databind.JavaType,org.apache.avro.Schema> _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)