Class CelValidator
java.lang.Object
io.confluent.kafka.schemaregistry.rules.cel.CelValidator
- All Implemented Interfaces:
ValidationRuleExecutor
Validation-rule executor backed by CEL. Each instance owns its own program cache; the
cache key is
(expr, scriptType, thisType, schemaHint) — narrow enough that the
same compiled CelRuntime.Program is reused across records that share the same
field shape.
Instantiated per serializer (lazily, the first time a validation rule fires) so that deserializer-only flows pay nothing.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CelValidator
public CelValidator() -
CelValidator
public CelValidator(int cacheSize)
-
-
Method Details
-
execute
- Specified by:
executein interfaceValidationRuleExecutor- Throws:
RuleException
-