public class SequenceFileRecordWriter extends Object implements RecordFileWriter.ExtendedRecordWriter
| Constructor and Description |
|---|
SequenceFileRecordWriter(org.apache.hadoop.fs.Path path,
org.apache.hadoop.mapred.JobConf jobConf,
Class<?> valueClass,
boolean compressed) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean abort) |
long |
getWrittenBytes() |
void |
write(org.apache.hadoop.io.Writable writable) |
public SequenceFileRecordWriter(org.apache.hadoop.fs.Path path,
org.apache.hadoop.mapred.JobConf jobConf,
Class<?> valueClass,
boolean compressed)
throws IOException
IOExceptionpublic long getWrittenBytes()
getWrittenBytes in interface RecordFileWriter.ExtendedRecordWriterpublic void write(org.apache.hadoop.io.Writable writable)
throws IOException
write in interface org.apache.hadoop.hive.ql.exec.FileSinkOperator.RecordWriterIOExceptionpublic void close(boolean abort)
throws IOException
close in interface org.apache.hadoop.hive.ql.exec.FileSinkOperator.RecordWriterIOExceptionCopyright © 2012–2020. All rights reserved.