Package io.confluent.avro.type
Class LogicalMapFactory
java.lang.Object
io.confluent.avro.type.LogicalMapFactory
- All Implemented Interfaces:
org.apache.avro.LogicalTypes.LogicalTypeFactory
public class LogicalMapFactory
extends Object
implements org.apache.avro.LogicalTypes.LogicalTypeFactory
Registers
LogicalMap with Avro's global logical type registry.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.avro.LogicalTypefromSchema(org.apache.avro.Schema schema) Must be overridden: the interface default throws, and Avro calls this to key the registry.
-
Constructor Details
-
LogicalMapFactory
public LogicalMapFactory()
-
-
Method Details
-
fromSchema
public org.apache.avro.LogicalType fromSchema(org.apache.avro.Schema schema) - Specified by:
fromSchemain interfaceorg.apache.avro.LogicalTypes.LogicalTypeFactory
-
getTypeName
Must be overridden: the interface default throws, and Avro calls this to key the registry.- Specified by:
getTypeNamein interfaceorg.apache.avro.LogicalTypes.LogicalTypeFactory
-