R - the subtype of ConnectRecord on which this transformation will operate@Incubating public abstract class ScriptingTransformation<R extends org.apache.kafka.connect.connector.ConnectRecord<R>> extends Object implements org.apache.kafka.connect.transforms.Transformation<R>
Engine interface in configure phase.
It will try to pre-parse the expression if it is allowed by the engine and than the expression is evaluated
for every record incoming.The engine will extract key, value and its schemas and will inject them as variables into the engine. The mapping is unique for each expression language.
| Modifier and Type | Class and Description |
|---|---|
static class |
ScriptingTransformation.NullHandling |
| Modifier and Type | Field and Description |
|---|---|
protected Engine |
engine |
private static String |
GRAAL_JS_ENGINE |
private static String |
JAVAX_SCRIPT_ENGINE_PREFIX |
static Field |
LANGUAGE |
private org.slf4j.Logger |
LOGGER |
static Field |
NULL_HANDLING |
private ScriptingTransformation.NullHandling |
nullHandling |
private static Field |
TOPIC_REGEX |
private Pattern |
topicPattern |
| Constructor and Description |
|---|
ScriptingTransformation() |
| Modifier and Type | Method and Description |
|---|---|
R |
apply(R record) |
void |
close() |
org.apache.kafka.common.config.ConfigDef |
config() |
void |
configure(Map<String,?> configs) |
protected abstract R |
doApply(R record) |
protected abstract Field |
expressionField() |
private final org.slf4j.Logger LOGGER
private static final String JAVAX_SCRIPT_ENGINE_PREFIX
private static final String GRAAL_JS_ENGINE
private static final Field TOPIC_REGEX
public static final Field LANGUAGE
public static final Field NULL_HANDLING
protected Engine engine
private ScriptingTransformation.NullHandling nullHandling
private Pattern topicPattern
Copyright © 2020 JBoss by Red Hat. All rights reserved.