public class AvroCodecFactory extends Object implements CodecFactory
| Modifier and Type | Field and 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 and Description |
|---|
AvroCodecFactory() |
| Modifier and Type | Method and 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.
|
public static final String KEY_SCHEMA_REGISTRY_URLS
public static final String DEFAULT_SCHEMA_REGISTRY_URLS
public static final String KEY_ENCODING
public static final String DEFAULT_ENCODING
protected String schemaRegistryUrls
public AvroCodecFactory()
public void init(Map<String,String> options)
CodecFactoryinit in interface CodecFactorypublic <T> Codec<T> newCodec(Class<T> objectClass)
CodecFactorynewCodec in interface CodecFactoryCopyright © 2019 Nuxeo. All rights reserved.