Hook for using Apache Flink API directly.
Used to show variables in UI pl.touk.nussknacker.engine.api.DisplayJson#originalDisplay method can be used to show original input if needed (i.e useful for csv record), so in UI variable will be pretty-printed in json format and raw-printed.
Used to show variables in UI pl.touk.nussknacker.engine.api.Displayable#originalDisplay method can be used to show original input if needed (i.e useful for csv record), so in UI variable will be pretty-printed in json format and raw-printed.
Lazy parameter is representation of parameter of custom node which should be evaluated for each record:
In this case, length is computed as constant during process compilation, while keyBy is evaluated for each event
Cannot be evaluated directly (no method like 'evaluate',
as evaluation may need e.g.def execute(@ParamName("keyBy") keyBy: LazyParameter[String], @ParamName ("length") length: String)
Lazy parameter is representation of parameter of custom node which should be evaluated for each record:
In this case, length is computed as constant during process compilation, while keyBy is evaluated for each event
Cannot be evaluated directly (no method like 'evaluate',
as evaluation may need e.g. lazy variables and we have to take care of lifecycle, to use it see LazyParameterInterpreterdef execute(@ParamName("keyBy") keyBy: LazyParameter[String], @ParamName ("length") length: String)
Interface of Enricher/Processor.
Interface of Enricher/Processor. It has to have one method annotated with pl.touk.nussknacker.engine.api.MethodToInvoke. This method is called for every service invocation.
This could be scala-trait, but we leave it as abstract class for now for java compatibility.
TODO We should consider separate interfaces for java implementation, but right now we convert ProcessConfigCreator from java to scala one and is seems difficult to convert java CustomStreamTransformer, Service etc. into scala ones
IMPORTANT lifecycle notice: Implementations of this class *must not* allocate resources (connections, file handles etc.) unless open() *or* appropriate @MethodToInvoke is called
Hook for using Apache Flink API directly. See examples in pl.touk.nussknacker.engine.example.custom
IMPORTANT lifecycle notice: Implementations of this class *must not* allocate resources (connections, file handles etc.)