Class SinkSchemaBuilder
java.lang.Object
io.aiven.kafka.connect.common.output.SinkSchemaBuilder
- Direct Known Subclasses:
AvroSchemaBuilder
,ParquetSchemaBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionSinkSchemaBuilder
(Collection<OutputField> fields, io.confluent.connect.avro.AvroData avroData) SinkSchemaBuilder
(Collection<OutputField> fields, io.confluent.connect.avro.AvroData avroData, boolean envelopeEnabled) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.avro.Schema
avroSchemaFor
(org.apache.kafka.connect.sink.SinkRecord record) org.apache.avro.Schema
buildSchema
(org.apache.kafka.connect.sink.SinkRecord record) io.confluent.connect.avro.AvroData
protected abstract String
boolean
protected org.apache.avro.Schema
outputFieldSchema
(OutputField field, org.apache.kafka.connect.sink.SinkRecord record)
-
Constructor Details
-
SinkSchemaBuilder
public SinkSchemaBuilder(Collection<OutputField> fields, io.confluent.connect.avro.AvroData avroData, boolean envelopeEnabled) -
SinkSchemaBuilder
public SinkSchemaBuilder(Collection<OutputField> fields, io.confluent.connect.avro.AvroData avroData)
-
-
Method Details
-
getNamespace
-
buildSchema
public org.apache.avro.Schema buildSchema(org.apache.kafka.connect.sink.SinkRecord record) -
avroSchemaFor
protected org.apache.avro.Schema avroSchemaFor(org.apache.kafka.connect.sink.SinkRecord record) -
outputFieldSchema
protected org.apache.avro.Schema outputFieldSchema(OutputField field, org.apache.kafka.connect.sink.SinkRecord record) -
getFields
-
getAvroData
public io.confluent.connect.avro.AvroData getAvroData() -
isEnvelopeEnabled
public boolean isEnvelopeEnabled()
-