Class AvroOutputWriter
java.lang.Object
io.aiven.kafka.connect.common.output.OutputWriter
io.aiven.kafka.connect.common.output.avro.AvroOutputWriter
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class io.aiven.kafka.connect.common.output.OutputWriter
OutputWriter.Builder
-
Field Summary
Fields inherited from class io.aiven.kafka.connect.common.output.OutputWriter
externalConfiguration, outputStream
-
Constructor Summary
ConstructorsConstructorDescriptionAvroOutputWriter
(Collection<OutputField> fields, OutputStream out, Map<String, String> externalConfig, boolean envelopeEnabled) -
Method Summary
Modifier and TypeMethodDescriptionvoid
writeRecord
(org.apache.kafka.connect.sink.SinkRecord record) void
writeRecords
(Collection<org.apache.kafka.connect.sink.SinkRecord> sinkRecords) Methods inherited from class io.aiven.kafka.connect.common.output.OutputWriter
builder, close
-
Constructor Details
-
AvroOutputWriter
public AvroOutputWriter(Collection<OutputField> fields, OutputStream out, Map<String, String> externalConfig, boolean envelopeEnabled)
-
-
Method Details
-
writeRecords
public void writeRecords(Collection<org.apache.kafka.connect.sink.SinkRecord> sinkRecords) throws IOException - Overrides:
writeRecords
in classOutputWriter
- Throws:
IOException
-
writeRecord
- Overrides:
writeRecord
in classOutputWriter
- Throws:
IOException
-