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
-
Method Summary
Modifier and TypeMethodDescriptionprotected DocumentModel
documentModelFromAvro
(org.apache.avro.generic.GenericRecord input) protected void
documentModelToAvro
(org.apache.avro.Schema schema, DocumentModel doc, org.apache.avro.generic.GenericRecord record) 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 Details
-
DocumentModelMapper
-
-
Method Details
-
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
-
documentModelToAvro
protected void documentModelToAvro(org.apache.avro.Schema schema, DocumentModel doc, org.apache.avro.generic.GenericRecord record)
-