public static interface Envelope.Builder
| Modifier and Type | Method and Description |
|---|---|
Envelope |
build()
Create the message envelope descriptor.
|
Envelope.Builder |
withDoc(String doc)
Define the documentation for the schema.
|
Envelope.Builder |
withName(String name)
Define the name for the schema.
|
default Envelope.Builder |
withRecord(org.apache.kafka.connect.data.Schema schema)
|
Envelope.Builder |
withSchema(org.apache.kafka.connect.data.Schema fieldSchema,
String... fieldNames)
Define the
Schema used for an arbitrary field in the envelope. |
default Envelope.Builder |
withSource(org.apache.kafka.connect.data.Schema sourceSchema)
Define the
Schema used in the Envelope.FieldName.SOURCE field. |
default Envelope.Builder withRecord(org.apache.kafka.connect.data.Schema schema)
schema - the schema of the records, used in the Envelope.FieldName.BEFORE and Envelope.FieldName.AFTER fields; may
not be nulldefault Envelope.Builder withSource(org.apache.kafka.connect.data.Schema sourceSchema)
Schema used in the Envelope.FieldName.SOURCE field.sourceSchema - the schema of the Envelope.FieldName.SOURCE field; may not be nullEnvelope.Builder withSchema(org.apache.kafka.connect.data.Schema fieldSchema, String... fieldNames)
Schema used for an arbitrary field in the envelope.fieldNames - the names of the fields that this schema should be used with; may not be nullfieldSchema - the schema of the new optional field; may not be nullEnvelope.Builder withName(String name)
name - the nameEnvelope.Builder withDoc(String doc)
doc - the documentationEnvelope build()
Copyright © 2018 JBoss by Red Hat. All rights reserved.