Package io.debezium.transforms.scripting
Interface Engine
-
- All Known Implementing Classes:
GraalJsEngine,Jsr223Engine
public interface EngineThe interface serves as an abstraction of expression language engine.- Author:
- Jiri Pechanec
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfigure(String language, String expression)Pre-compiles the expression for repeated execution.<T> Teval(org.apache.kafka.connect.connector.ConnectRecord<?> record, Class<T> type)Calculate a value out of the record.
-
-
-
Method Detail
-
configure
void configure(String language, String expression)
Pre-compiles the expression for repeated execution. The method is called once upon the engine initialization.- Parameters:
expression-
-
eval
<T> T eval(org.apache.kafka.connect.connector.ConnectRecord<?> record, Class<T> type)Calculate a value out of the record.- Parameters:
record- to be used- Returns:
- result of calculation
-
-