Interface Transformation<R extends ConnectRecord<R>>
-
- All Superinterfaces:
AutoCloseable,Closeable,org.apache.kafka.common.Configurable
public interface Transformation<R extends ConnectRecord<R>> extends org.apache.kafka.common.Configurable, Closeable
Single message transformation for Kafka Connect record types. Connectors can be configured with transformations to make lightweight message-at-a-time modifications.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rapply(R record)Apply transformation to therecordand return another record object (which may berecorditself) ornull, corresponding to a map or filter operation respectively.voidclose()Signal that this transformation instance will no longer will be used.org.apache.kafka.common.config.ConfigDefconfig()Configuration specification for this transformation.
-
-
-
Method Detail
-
apply
R apply(R record)
Apply transformation to therecordand return another record object (which may berecorditself) ornull, corresponding to a map or filter operation respectively. The implementation must be thread-safe.
-
config
org.apache.kafka.common.config.ConfigDef config()
Configuration specification for this transformation.
-
close
void close()
Signal that this transformation instance will no longer will be used.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-