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
  • Constructor Details

    • DocumentModelMapper

      public DocumentModelMapper(AvroService service)
  • Method Details

    • fromAvro

      public DocumentModel fromAvro(org.apache.avro.Schema schema, org.apache.avro.generic.GenericRecord input)
      Specified by:
      fromAvro in class AvroMapper<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 class AvroMapper<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)