Package org.nuxeo.runtime.codec
Class AvroCodecFactory
- java.lang.Object
-
- org.nuxeo.runtime.codec.AvroCodecFactory
-
- All Implemented Interfaces:
CodecFactory
public class AvroCodecFactory extends Object implements CodecFactory
Factory to generate Avro codec with different flavors- Since:
- 10.3
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_ENCODING
static String
DEFAULT_SCHEMA_REGISTRY_URLS
protected String
encoding
static String
KEY_ENCODING
static String
KEY_SCHEMA_REGISTRY_URLS
protected String
schemaRegistryUrls
-
Constructor Summary
Constructors Constructor Description AvroCodecFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(Map<String,String> options)
Initializes the codec factory using a map of options.<T> Codec<T>
newCodec(Class<T> objectClass)
Returns a codec object enables to encode/decode object ot class T.
-
-
-
Field Detail
-
KEY_SCHEMA_REGISTRY_URLS
public static final String KEY_SCHEMA_REGISTRY_URLS
- See Also:
- Constant Field Values
-
DEFAULT_SCHEMA_REGISTRY_URLS
public static final String DEFAULT_SCHEMA_REGISTRY_URLS
- See Also:
- Constant Field Values
-
KEY_ENCODING
public static final String KEY_ENCODING
- See Also:
- Constant Field Values
-
DEFAULT_ENCODING
public static final String DEFAULT_ENCODING
- See Also:
- Constant Field Values
-
encoding
protected String encoding
-
schemaRegistryUrls
protected String schemaRegistryUrls
-
-
Method Detail
-
init
public void init(Map<String,String> options)
Description copied from interface:CodecFactory
Initializes the codec factory using a map of options.- Specified by:
init
in interfaceCodecFactory
-
newCodec
public <T> Codec<T> newCodec(Class<T> objectClass)
Description copied from interface:CodecFactory
Returns a codec object enables to encode/decode object ot class T.- Specified by:
newCodec
in interfaceCodecFactory
-
-