Package io.trino.plugin.hive.avro
Class AvroRecordWriter
java.lang.Object
io.trino.plugin.hive.avro.AvroRecordWriter
- All Implemented Interfaces:
RecordFileWriter.ExtendedRecordWriter,org.apache.hadoop.hive.ql.exec.FileSinkOperator.RecordWriter
-
Constructor Summary
ConstructorsConstructorDescriptionAvroRecordWriter(org.apache.hadoop.fs.Path path, org.apache.hadoop.mapred.JobConf jobConf, boolean isCompressed, Properties properties) -
Method Summary
-
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:
getWrittenBytesin interfaceRecordFileWriter.ExtendedRecordWriter
-
write
- Specified by:
writein interfaceorg.apache.hadoop.hive.ql.exec.FileSinkOperator.RecordWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceorg.apache.hadoop.hive.ql.exec.FileSinkOperator.RecordWriter- Throws:
IOException
-