Class OutputWriter.Builder
- java.lang.Object
-
- io.aiven.kafka.connect.common.output.OutputWriter.Builder
-
- Enclosing class:
- OutputWriter
public static class OutputWriter.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected CompressionTypecompressionTypeprotected booleanenvelopeEnabledprotected java.util.Map<java.lang.String,java.lang.String>externalPropertiesprotected java.util.Collection<OutputField>outputFields
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputWriterbuild(java.io.OutputStream out, FormatType formatType)OutputWriter.BuilderwithCompressionType(CompressionType compressionType)OutputWriter.BuilderwithEnvelopeEnabled(java.lang.Boolean enabled)OutputWriter.BuilderwithExternalProperties(java.util.Map<java.lang.String,java.lang.String> externalProperties)OutputWriter.BuilderwithOutputFields(java.util.Collection<OutputField> outputFields)
-
-
-
Field Detail
-
compressionType
protected CompressionType compressionType
-
externalProperties
protected java.util.Map<java.lang.String,java.lang.String> externalProperties
-
outputFields
protected java.util.Collection<OutputField> outputFields
-
envelopeEnabled
protected boolean envelopeEnabled
-
-
Method Detail
-
withCompressionType
public OutputWriter.Builder withCompressionType(CompressionType compressionType)
-
withExternalProperties
public OutputWriter.Builder withExternalProperties(java.util.Map<java.lang.String,java.lang.String> externalProperties)
-
withOutputFields
public OutputWriter.Builder withOutputFields(java.util.Collection<OutputField> outputFields)
-
withEnvelopeEnabled
public OutputWriter.Builder withEnvelopeEnabled(java.lang.Boolean enabled)
-
build
public OutputWriter build(java.io.OutputStream out, FormatType formatType) throws java.io.IOException
- Throws:
java.io.IOException
-
-