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
public class AvroRecordWriter extends Object implements RecordFileWriter.ExtendedRecordWriter
-
-
Constructor Summary
Constructors Constructor Description AvroRecordWriter(org.apache.hadoop.fs.Path path, org.apache.hadoop.mapred.JobConf jobConf, boolean isCompressed, Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(boolean abort)longgetWrittenBytes()voidwrite(org.apache.hadoop.io.Writable writable)
-
-
-
Constructor Detail
-
AvroRecordWriter
public AvroRecordWriter(org.apache.hadoop.fs.Path path, org.apache.hadoop.mapred.JobConf jobConf, boolean isCompressed, Properties properties) throws IOException- Throws:
IOException
-
-
Method Detail
-
getWrittenBytes
public long getWrittenBytes()
- Specified by:
getWrittenBytesin interfaceRecordFileWriter.ExtendedRecordWriter
-
write
public void write(org.apache.hadoop.io.Writable writable) throws IOException- Specified by:
writein interfaceorg.apache.hadoop.hive.ql.exec.FileSinkOperator.RecordWriter- Throws:
IOException
-
close
public void close(boolean abort) throws IOException- Specified by:
closein interfaceorg.apache.hadoop.hive.ql.exec.FileSinkOperator.RecordWriter- Throws:
IOException
-
-