public class AvroSchemaFactoryContext extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,org.apache.avro.Schema> |
createdSchemas |
protected Map<Class<?>,AvroSchemaFactory<?>> |
factories |
protected static AvroSchemaFactory<Object> |
NULL |
protected AvroService |
service |
Modifier | Constructor and Description |
---|---|
protected |
AvroSchemaFactoryContext(AvroService service) |
Modifier and Type | Method and Description |
---|---|
<T> org.apache.avro.Schema |
createSchema(T input) |
protected <T> AvroSchemaFactory<T> |
getFactory(T input) |
AvroService |
getService() |
protected void |
register(Class<?> type,
AvroSchemaFactory<?> factory) |
<U> List<U> |
sort(Collection<U> children) |
protected static final AvroSchemaFactory<Object> NULL
protected final Map<Class<?>,AvroSchemaFactory<?>> factories
protected final Map<String,org.apache.avro.Schema> createdSchemas
protected final AvroService service
protected AvroSchemaFactoryContext(AvroService service)
public <T> org.apache.avro.Schema createSchema(T input)
public AvroService getService()
public <U> List<U> sort(Collection<U> children)
protected <T> AvroSchemaFactory<T> getFactory(T input)
protected void register(Class<?> type, AvroSchemaFactory<?> factory)
Copyright © 2019 Nuxeo. All rights reserved.