Package org.apache.nifi.avro
Class WriteAvroResultWithSchema
java.lang.Object
org.apache.nifi.serialization.AbstractRecordSetWriter
org.apache.nifi.avro.WriteAvroResultWithSchema
- All Implemented Interfaces:
Closeable
,AutoCloseable
,RecordSetWriter
,RecordWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.avro.file.DataFileWriter
<org.apache.avro.generic.GenericRecord> private final org.apache.avro.Schema
-
Constructor Summary
ConstructorsConstructorDescriptionWriteAvroResultWithSchema
(org.apache.avro.Schema schema, OutputStream out, org.apache.avro.file.CodecFactory codec) -
Method Summary
Methods inherited from class org.apache.nifi.serialization.AbstractRecordSetWriter
beginRecordSet, finishRecordSet, getOutputStream, getRecordCount, incrementRecordCount, isActiveRecordSet, onBeginRecordSet, onFinishRecordSet, write, write
-
Field Details
-
dataFileWriter
private final org.apache.avro.file.DataFileWriter<org.apache.avro.generic.GenericRecord> dataFileWriter -
schema
private final org.apache.avro.Schema schema
-
-
Constructor Details
-
WriteAvroResultWithSchema
public WriteAvroResultWithSchema(org.apache.avro.Schema schema, OutputStream out, org.apache.avro.file.CodecFactory codec) throws IOException - Throws:
IOException
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classAbstractRecordSetWriter
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceRecordWriter
- Overrides:
flush
in classAbstractRecordSetWriter
- Throws:
IOException
-
writeRecord
- Specified by:
writeRecord
in classAbstractRecordSetWriter
- Throws:
IOException
-
getMimeType
-