public class AvroRecordWriter extends Object implements RecordFileWriter.ExtendedRecordWriter
| Constructor and Description |
|---|
AvroRecordWriter(org.apache.hadoop.fs.Path path,
org.apache.hadoop.mapred.JobConf jobConf,
boolean isCompressed,
Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean abort) |
long |
getWrittenBytes() |
void |
write(org.apache.hadoop.io.Writable writable) |
public AvroRecordWriter(org.apache.hadoop.fs.Path path,
org.apache.hadoop.mapred.JobConf jobConf,
boolean isCompressed,
Properties properties)
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.