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
public class TextRecordWriter extends Object implements RecordFileWriter.ExtendedRecordWriter
-
-
Constructor Summary
Constructors Constructor Description TextRecordWriter(org.apache.hadoop.fs.Path path, org.apache.hadoop.mapred.JobConf jobConf, Properties properties, boolean isCompressed, Optional<TextHeaderWriter> textHeaderWriter)
-
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
-
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 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
-
-