Class DocumentModelMapper


  • public class DocumentModelMapper
    extends AvroMapper<DocumentModel,​org.apache.avro.generic.GenericRecord>
    Since:
    10.2
    • 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 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)