Enum Class CelUtils.RegexEngine
java.lang.Object
java.lang.Enum<CelUtils.RegexEngine>
io.confluent.kafka.schemaregistry.rules.cel.CelUtils.RegexEngine
- All Implemented Interfaces:
Serializable,Comparable<CelUtils.RegexEngine>,Constable
- Enclosing class:
- CelUtils
Regex engine used by the CEL
matches / matches_string
overloads. Selectable per-rule (via params.cel.regex.engine) or
globally (via the executor config). The unconfigured default is
DEFAULT.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CelUtils.RegexEngineThe default engine when none is configured. -
Method Summary
Modifier and TypeMethodDescriptionstatic CelUtils.RegexEnginefromString(String s) static CelUtils.RegexEngineReturns the enum constant of this class with the specified name.static CelUtils.RegexEngine[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PCRE
-
RE2
-
-
Field Details
-
DEFAULT
The default engine when none is configured. Change this single value to flip the default forCelExecutorand the no-engineCelUtils.buildProgram(io.confluent.kafka.schemaregistry.rules.cel.CelUtils.ScriptType, java.lang.String, java.lang.Object, java.util.List<dev.cel.common.CelVarDecl>)overload. Does not affectCelValidator, which always usesRE2for ReDoS safety on the hot serialize path.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
-