Package org.apache.avro
Interface LogicalTypes.LogicalTypeFactory
- Enclosing class:
LogicalTypes
public static interface LogicalTypes.LogicalTypeFactory
Factory interface and SPI for logical types. A
LogicalTypeFactory
can
be registered in two ways:
- Manually, via
LogicalTypes.register(LogicalTypeFactory)
orLogicalTypes.register(String, LogicalTypeFactory)
- Automatically, when the
LogicalTypeFactory
implementation is a public class with a public no-arg constructor, is named in a file called/META-INF/services/org.apache.avro.LogicalTypes$LogicalTypeFactory
, and both are available in the classpath
- See Also:
-
Method Summary
-
Method Details
-
fromSchema
-
getTypeName
-