T - The java type of the avro record to write.protected static class AvroKeyOutputFormat.RecordWriterFactory<T> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
RecordWriterFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected RecordWriter<AvroKey<T>,NullWritable> |
create(Schema writerSchema,
GenericData dataModel,
CodecFactory compressionCodec,
OutputStream outputStream,
int syncInterval)
Creates a new record writer instance.
|
protected RecordWriter<AvroKey<T>,NullWritable> create(Schema writerSchema, GenericData dataModel, CodecFactory compressionCodec, OutputStream outputStream, int syncInterval) throws IOException
writerSchema - The writer schema for the records to write.compressionCodec - The compression type for the writer file.outputStream - The target output stream for the records.syncInterval - The sync interval for the writer file.IOExceptionCopyright © 2009–2023 The Apache Software Foundation. All rights reserved.