Class SparkPlannedAvroReader

  • All Implemented Interfaces:
    org.apache.avro.io.DatumReader<org.apache.spark.sql.catalyst.InternalRow>, SupportsRowPosition

    public class SparkPlannedAvroReader
    extends java.lang.Object
    implements org.apache.avro.io.DatumReader<org.apache.spark.sql.catalyst.InternalRow>, SupportsRowPosition
    • Method Detail

      • setSchema

        public void setSchema​(org.apache.avro.Schema fileSchema)
        Specified by:
        setSchema in interface org.apache.avro.io.DatumReader<org.apache.spark.sql.catalyst.InternalRow>
      • read

        public org.apache.spark.sql.catalyst.InternalRow read​(org.apache.spark.sql.catalyst.InternalRow reuse,
                                                              org.apache.avro.io.Decoder decoder)
                                                       throws java.io.IOException
        Specified by:
        read in interface org.apache.avro.io.DatumReader<org.apache.spark.sql.catalyst.InternalRow>
        Throws:
        java.io.IOException