Package io.trino.plugin.hive.util
Class TextRecordWriter
java.lang.Object
io.trino.plugin.hive.util.TextRecordWriter
- All Implemented Interfaces:
RecordFileWriter.ExtendedRecordWriter,org.apache.hadoop.hive.ql.exec.FileSinkOperator.RecordWriter
-
Constructor Summary
ConstructorsConstructorDescriptionTextRecordWriter(org.apache.hadoop.fs.Path path, org.apache.hadoop.mapred.JobConf jobConf, Properties properties, boolean isCompressed, Optional<TextHeaderWriter> textHeaderWriter) -
Method Summary
-
Constructor Details
-
TextRecordWriter
public TextRecordWriter(org.apache.hadoop.fs.Path path, org.apache.hadoop.mapred.JobConf jobConf, Properties properties, boolean isCompressed, Optional<TextHeaderWriter> textHeaderWriter) 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
-