Package org.nuxeo.ecm.core.io.avro
Class DocumentModelMapper
- java.lang.Object
-
- org.nuxeo.runtime.avro.AvroMapper<DocumentModel,org.apache.avro.generic.GenericRecord>
-
- org.nuxeo.ecm.core.io.avro.DocumentModelMapper
-
public class DocumentModelMapper extends AvroMapper<DocumentModel,org.apache.avro.generic.GenericRecord>
- Since:
- 10.2
-
-
Field Summary
-
Fields inherited from class org.nuxeo.runtime.avro.AvroMapper
CANNOT_MAP_FROM, CANNOT_MAP_TO, LOGICAL_TYPE, service
-
-
Constructor Summary
Constructors Constructor Description DocumentModelMapper(AvroService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DocumentModel
documentModelFromAvro(org.apache.avro.generic.GenericRecord input)
protected void
documentModelToAvro(org.apache.avro.Schema schema, DocumentModel doc, org.apache.avro.generic.GenericRecord record)
DocumentModel
fromAvro(org.apache.avro.Schema schema, org.apache.avro.generic.GenericRecord input)
org.apache.avro.generic.GenericRecord
toAvro(org.apache.avro.Schema schema, DocumentModel input)
-
Methods inherited from class org.nuxeo.runtime.avro.AvroMapper
getLogicalType
-
-
-
-
Constructor Detail
-
DocumentModelMapper
public DocumentModelMapper(AvroService service)
-
-
Method Detail
-
fromAvro
public DocumentModel fromAvro(org.apache.avro.Schema schema, org.apache.avro.generic.GenericRecord input)
- Specified by:
fromAvro
in classAvroMapper<DocumentModel,org.apache.avro.generic.GenericRecord>
-
toAvro
public org.apache.avro.generic.GenericRecord toAvro(org.apache.avro.Schema schema, DocumentModel input)
- Specified by:
toAvro
in classAvroMapper<DocumentModel,org.apache.avro.generic.GenericRecord>
-
documentModelFromAvro
protected DocumentModel documentModelFromAvro(org.apache.avro.generic.GenericRecord input)
-
documentModelToAvro
protected void documentModelToAvro(org.apache.avro.Schema schema, DocumentModel doc, org.apache.avro.generic.GenericRecord record)
-
-