public interface HeaderConverter extends Configurable, java.io.Closeable
| Modifier and Type | Method and 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  Headerobject. | 
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()