java.lang.AutoCloseable, java.io.Closeable, ConfigurableSimpleHeaderConverter, StringConverterpublic interface HeaderConverter extends Configurable, java.io.Closeable
| Modifier and Type | Method | Description |
|---|---|---|
ConfigDef |
config() |
Configuration specification for this set of header converters.
|
byte[] |
fromConnectHeader(java.lang.String topic,
java.lang.String headerKey,
Schema schema,
java.lang.Object value) |
|
SchemaAndValue |
toConnectHeader(java.lang.String topic,
java.lang.String headerKey,
byte[] value) |
Convert the header name and byte array value into a
Header object. |
configureSchemaAndValue toConnectHeader(java.lang.String topic, java.lang.String headerKey, byte[] value)
Header object.topic - the name of the topic for the record containing the headerheaderKey - the header's key; may not be nullvalue - the header's raw value; may be nullSchemaAndValue; may not be nullbyte[] fromConnectHeader(java.lang.String topic,
java.lang.String headerKey,
Schema schema,
java.lang.Object value)
topic - the name of the topic for the record containing the headerheaderKey - the header's key; may not be nullschema - the schema for the header's value; may be nullvalue - the header's value to convert; may be nullConfigDef config()