Package io.confluent.avro.type
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 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
-
VariantLogicalTypeFactory
public VariantLogicalTypeFactory()
-
-
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
-