K - The type of key the record writer should generate.V - The type of value the record wrtier should generate.T - The type of the entries within the Trevni container file being
        written.public abstract class AvroTrevniRecordWriterBase<K,V,T> extends RecordWriter<K,V>
RecordWriters that writes Trevni
 container files.| Modifier and Type | Field and Description | 
|---|---|
| static String | EXTtrevni file extension | 
| protected ColumnFileMetaData | metameta data to be stored in the output file. | 
| static String | META_PREFIXprefix of job configs that we care about | 
| protected int | partCounter that increments as new trevni files are create because the current
 file has exceeded the block size | 
| protected Schema | schemaProvided avro schema from the context | 
| protected AvroColumnWriter<T> | writerTrevni file writer | 
| Constructor and Description | 
|---|
| AvroTrevniRecordWriterBase(TaskAttemptContext context)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close(TaskAttemptContext arg0) | 
| void | flush()A Trevni flush will close the current file and prep a new writer | 
| protected abstract Schema | initSchema(TaskAttemptContext context)Use the task context to construct a schema for writing | 
writepublic static final String EXT
public static final String META_PREFIX
protected int part
protected AvroColumnWriter<T> writer
protected Schema schema
protected ColumnFileMetaData meta
public AvroTrevniRecordWriterBase(TaskAttemptContext context) throws IOException
context - The TaskAttempContext to supply the writer with information
                form the job configurationIOExceptionprotected abstract Schema initSchema(TaskAttemptContext context)
IOExceptionpublic void flush()
           throws IOException
IOExceptionpublic void close(TaskAttemptContext arg0) throws IOException, InterruptedException
close in class RecordWriter<K,V>IOExceptionInterruptedExceptionCopyright © 2009–2020 The Apache Software Foundation. All rights reserved.