Class NameMappingDatumReader<D>

  • Type Parameters:
    D - Java class of datums produced by this reader
    All Implemented Interfaces:<D>, SupportsRowPosition

    public class NameMappingDatumReader<D>
    extends java.lang.Object
    implements<D>, SupportsRowPosition
    A delegating DatumReader that applies a name mapping to a file schema to enable reading Avro files that were written without field IDs.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      D read​(D reuse, in)  
      void setRowPositionSupplier​(java.util.function.Supplier<java.lang.Long> posSupplier)  
      void setSchema​(org.apache.avro.Schema newFileSchema)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NameMappingDatumReader

        public NameMappingDatumReader​(NameMapping nameMapping,
                            <D> wrapped)
    • Method Detail

      • setSchema

        public void setSchema​(org.apache.avro.Schema newFileSchema)
        Specified by:
        setSchema in interface<D>
      • read

        public D read​(D reuse,
        Specified by:
        read in interface<D>