Package io.confluent.avro.type
Class LogicalMap
java.lang.Object
org.apache.avro.LogicalType
io.confluent.avro.type.LogicalMap
public class LogicalMap
extends org.apache.avro.LogicalType
-
Field Summary
FieldsFields inherited from class org.apache.avro.LogicalType
LOGICAL_TYPE_PROP -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.avro.SchemacreateMap(String keyValueName, org.apache.avro.Schema keySchema, org.apache.avro.Schema valueSchema) Build an Avro array-of-key-value-record schema with themaplogical type attached.static LogicalMapget()voidvalidate(org.apache.avro.Schema schema) Methods inherited from class org.apache.avro.LogicalType
addToSchema, getName
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
get
-
validate
public void validate(org.apache.avro.Schema schema) - Overrides:
validatein classorg.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 themaplogical type attached. Fields whose schema is a[null, X]union (null-first) are given adefault: null;[X, null]unions are left undefaulted because the Avro spec requires a union default to match the *first* branch.
-