Package dev.cel.extensions
Class CelSetsExtensions
- java.lang.Object
-
- dev.cel.extensions.CelSetsExtensions
-
- All Implemented Interfaces:
CelCheckerLibrary
,CelCompilerLibrary
,CelParserLibrary
,CelRuntimeLibrary
@Immutable public final class CelSetsExtensions extends java.lang.Object implements CelCompilerLibrary, CelRuntimeLibrary
Internal implementation of CEL Set extensions.TODO: https://github.com/google/cel-go/blob/master/ext/sets.go#L127
Invoking in operator will result in O(n) complexity. We need to wire in the CEL optimizers to rewrite the AST into a map to achieve a O(1) lookup.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CelSetsExtensions.Function
Denotes the set extension function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setCheckerOptions(CelCheckerBuilder checkerBuilder)
Configures the checker to support the library implementation, such as adding function bindingsvoid
setRuntimeOptions(CelRuntimeBuilder runtimeBuilder)
Configures the runtime to support the library implementation, such as adding function bindings.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface dev.cel.parser.CelParserLibrary
setParserOptions
-
-
-
-
Method Detail
-
setCheckerOptions
public void setCheckerOptions(CelCheckerBuilder checkerBuilder)
Description copied from interface:CelCheckerLibrary
Configures the checker to support the library implementation, such as adding function bindings- Specified by:
setCheckerOptions
in interfaceCelCheckerLibrary
-
setRuntimeOptions
public void setRuntimeOptions(CelRuntimeBuilder runtimeBuilder)
Description copied from interface:CelRuntimeLibrary
Configures the runtime to support the library implementation, such as adding function bindings.- Specified by:
setRuntimeOptions
in interfaceCelRuntimeLibrary
-
-