Class AvroRecordWriter

java.lang.Object
io.trino.plugin.hive.avro.AvroRecordWriter
All Implemented Interfaces:
RecordFileWriter.ExtendedRecordWriter, org.apache.hadoop.hive.ql.exec.FileSinkOperator.RecordWriter

public class AvroRecordWriter extends Object implements RecordFileWriter.ExtendedRecordWriter
  • Constructor Details

    • AvroRecordWriter

      public AvroRecordWriter(org.apache.hadoop.fs.Path path, org.apache.hadoop.mapred.JobConf jobConf, boolean isCompressed, Properties properties) throws IOException
      Throws:
      IOException
  • Method Details

    • getWrittenBytes

      public long getWrittenBytes()
      Specified by:
      getWrittenBytes in interface RecordFileWriter.ExtendedRecordWriter
    • write

      public void write(org.apache.hadoop.io.Writable writable) throws IOException
      Specified by:
      write in interface org.apache.hadoop.hive.ql.exec.FileSinkOperator.RecordWriter
      Throws:
      IOException
    • close

      public void close(boolean abort) throws IOException
      Specified by:
      close in interface org.apache.hadoop.hive.ql.exec.FileSinkOperator.RecordWriter
      Throws:
      IOException