T - The Java type of the Trevni data to write.public class AvroTrevniKeyRecordWriter<T> extends AvroTrevniRecordWriterBase<AvroKey<T>,org.apache.hadoop.io.NullWritable,T>
EXT, meta, META_PREFIX, part, schema, writer| Constructor and Description |
|---|
AvroTrevniKeyRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Schema |
initSchema(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Use the task context to construct a schema for writing
|
void |
write(AvroKey<T> key,
org.apache.hadoop.io.NullWritable value) |
close, flushpublic AvroTrevniKeyRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException
context - The TaskAttempContext to supply the writer with information
form the job configurationIOExceptionpublic void write(AvroKey<T> key, org.apache.hadoop.io.NullWritable value) throws IOException, InterruptedException
write in class org.apache.hadoop.mapreduce.RecordWriter<AvroKey<T>,org.apache.hadoop.io.NullWritable>IOExceptionInterruptedExceptionprotected Schema initSchema(org.apache.hadoop.mapreduce.TaskAttemptContext context)
initSchema in class AvroTrevniRecordWriterBase<AvroKey<T>,org.apache.hadoop.io.NullWritable,T>Copyright © 2009–2020 The Apache Software Foundation. All rights reserved.