Class VariantLogicalTypeFactory

java.lang.Object
io.confluent.avro.type.VariantLogicalTypeFactory
All Implemented Interfaces:
org.apache.avro.LogicalTypes.LogicalTypeFactory

public class VariantLogicalTypeFactory extends Object implements org.apache.avro.LogicalTypes.LogicalTypeFactory
Registers VariantLogicalType with Avro's global logical type registry.
  • Constructor Details

    • VariantLogicalTypeFactory

      public VariantLogicalTypeFactory()
  • Method Details

    • fromSchema

      public org.apache.avro.LogicalType fromSchema(org.apache.avro.Schema schema)
      Specified by:
      fromSchema in interface org.apache.avro.LogicalTypes.LogicalTypeFactory
    • getTypeName

      public String getTypeName()
      Must be overridden: the interface default throws, and Avro calls this to key the registry.
      Specified by:
      getTypeName in interface org.apache.avro.LogicalTypes.LogicalTypeFactory