Class LogicalMap

java.lang.Object
org.apache.avro.LogicalType
io.confluent.avro.type.LogicalMap

public class LogicalMap extends org.apache.avro.LogicalType
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.apache.avro.LogicalType

    LOGICAL_TYPE_PROP
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.avro.Schema
    createMap(String keyValueName, org.apache.avro.Schema keySchema, org.apache.avro.Schema valueSchema)
    Build an Avro array-of-key-value-record schema with the map logical type attached.
    static LogicalMap
    get()
     
    void
    validate(org.apache.avro.Schema schema)
     

    Methods inherited from class org.apache.avro.LogicalType

    addToSchema, getName

    Methods inherited from class java.lang.Object

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

  • Method Details

    • get

      public static LogicalMap get()
    • validate

      public void validate(org.apache.avro.Schema schema)
      Overrides:
      validate in class org.apache.avro.LogicalType
    • createMap

      public static org.apache.avro.Schema createMap(String keyValueName, org.apache.avro.Schema keySchema, org.apache.avro.Schema valueSchema)
      Build an Avro array-of-key-value-record schema with the map logical type attached. Fields whose schema is a [null, X] union (null-first) are given a default: null; [X, null] unions are left undefaulted because the Avro spec requires a union default to match the *first* branch.