public class WriteAvroResultWithSchema extends AbstractRecordSetWriter
Modifier and Type | Field and Description |
---|---|
private org.apache.avro.file.DataFileWriter<org.apache.avro.generic.GenericRecord> |
dataFileWriter |
private org.apache.avro.Schema |
schema |
Constructor and Description |
---|
WriteAvroResultWithSchema(org.apache.avro.Schema schema,
OutputStream out,
org.apache.avro.file.CodecFactory codec) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
String |
getMimeType() |
Map<String,String> |
writeRecord(Record record) |
beginRecordSet, finishRecordSet, getOutputStream, getRecordCount, incrementRecordCount, isActiveRecordSet, onBeginRecordSet, onFinishRecordSet, write, write
private final org.apache.avro.file.DataFileWriter<org.apache.avro.generic.GenericRecord> dataFileWriter
private final org.apache.avro.Schema schema
public WriteAvroResultWithSchema(org.apache.avro.Schema schema, OutputStream out, org.apache.avro.file.CodecFactory codec) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractRecordSetWriter
IOException
public void flush() throws IOException
flush
in interface RecordWriter
flush
in class AbstractRecordSetWriter
IOException
public Map<String,String> writeRecord(Record record) throws IOException
writeRecord
in class AbstractRecordSetWriter
IOException
public String getMimeType()
Copyright © 2023 Apache NiFi Project. All rights reserved.