R - the subtype of ConnectRecord on which this transformation will operate@Incubating public class Filter<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 |
Filter.NullHandling |
| Modifier and Type | Field and Description |
|---|---|
private Engine |
engine |
static Field |
EXPRESSION |
private static String |
GRAAL_JS_ENGINE |
private static String |
JAVAX_SCRIPT_ENGINE_PREFIX |
static Field |
LANGUAGE |
private static org.slf4j.Logger |
LOGGER |
static Field |
NULL_HANDLING |
private Filter.NullHandling |
nullHandling |
| Constructor and Description |
|---|
Filter() |
| Modifier and Type | Method and Description |
|---|---|
R |
apply(R record) |
void |
close() |
org.apache.kafka.common.config.ConfigDef |
config() |
void |
configure(Map<String,?> configs) |
private static final org.slf4j.Logger LOGGER
private static final String JAVAX_SCRIPT_ENGINE_PREFIX
private static final String GRAAL_JS_ENGINE
public static final Field LANGUAGE
public static final Field EXPRESSION
public static final Field NULL_HANDLING
private Engine engine
private Filter.NullHandling nullHandling
Copyright © 2020 JBoss by Red Hat. All rights reserved.