Class OutputWriter
java.lang.Object
io.aiven.kafka.connect.common.output.OutputWriter
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
AvroOutputWriter
,JsonLinesOutputWriter
,JsonOutputWriter
,ParquetOutputWriter
,PlainOutputWriter
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
OutputWriter
(OutputStream outputStream, OutputStreamWriter writer) protected
OutputWriter
(OutputStream outputStream, OutputStreamWriter writer, Map<String, String> externalConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionstatic OutputWriter.Builder
builder()
void
close()
void
writeRecord
(org.apache.kafka.connect.sink.SinkRecord record) void
writeRecords
(Collection<org.apache.kafka.connect.sink.SinkRecord> sinkRecords)
-
Field Details
-
outputStream
-
externalConfiguration
-
-
Constructor Details
-
OutputWriter
-
OutputWriter
protected OutputWriter(OutputStream outputStream, OutputStreamWriter writer, Map<String, String> externalConfiguration)
-
-
Method Details
-
writeRecords
public void writeRecords(Collection<org.apache.kafka.connect.sink.SinkRecord> sinkRecords) throws IOException - Throws:
IOException
-
writeRecord
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
builder
-