Package org.nuxeo.runtime.avro
Class AvroMapper<D,M>
- java.lang.Object
-
- org.nuxeo.runtime.avro.AvroMapper<D,M>
-
- Direct Known Subclasses:
BlobPropertyMapper
,DocumentModelMapper
,PropertyMapper
public abstract class AvroMapper<D,M> extends Object
The base class for any AvroMapper.- Since:
- 10.2
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
CANNOT_MAP_FROM
protected static String
CANNOT_MAP_TO
protected static String
LOGICAL_TYPE
protected AvroService
service
-
Constructor Summary
Constructors Modifier Constructor Description protected
AvroMapper(AvroService service)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Object
fromAvro(org.apache.avro.Schema schema, M input)
protected String
getLogicalType(org.apache.avro.Schema schema)
abstract M
toAvro(org.apache.avro.Schema schema, D input)
-
-
-
Field Detail
-
CANNOT_MAP_TO
protected static final String CANNOT_MAP_TO
- See Also:
- Constant Field Values
-
CANNOT_MAP_FROM
protected static final String CANNOT_MAP_FROM
- See Also:
- Constant Field Values
-
LOGICAL_TYPE
protected static final String LOGICAL_TYPE
- See Also:
- Constant Field Values
-
service
protected final AvroService service
-
-
Constructor Detail
-
AvroMapper
protected AvroMapper(AvroService service)
-
-