public static interface LogicalTypes.LogicalTypeFactory
LogicalTypeFactory
can
be registered in two ways:
LogicalTypes.register(LogicalTypeFactory)
or
LogicalTypes.register(String, LogicalTypeFactory)
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 classpathServiceLoader
Modifier and Type | Method and Description |
---|---|
LogicalType |
fromSchema(Schema schema) |
default String |
getTypeName() |
LogicalType fromSchema(Schema schema)
default String getTypeName()
Copyright © 2009–2022 The Apache Software Foundation. All rights reserved.