Class CelValidator

java.lang.Object
io.confluent.kafka.schemaregistry.rules.cel.CelValidator
All Implemented Interfaces:
ValidationRuleExecutor

public final class CelValidator extends Object implements 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.