Class PromqlFunctionRegistry
java.lang.Object
org.elasticsearch.xpack.esql.expression.promql.function.PromqlFunctionRegistry
A registry for PromQL functions that maps function names to their respective definitions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordCarries the PromQL evaluation context needed by function builders to construct ES|QL expressions. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuildEsqlFunction(String name, Source source, Expression target, PromqlFunctionRegistry.PromqlContext ctx, List<Expression> extraParams) voidcheckFunction(Source source, String name) functionMetadata(String name) Retrieves the function definition metadata for the given function name.booleanisNotImplemented(String name) Returnstrueif the function with the given name exists in the registry but has not yet been implemented.Returns the names of PromQL functions that are recognized but not yet implemented, sorted for deterministic output.
-
Field Details
-
INSTANCE
-
-
Method Details
-
allFunctions
-
functionMetadata
Retrieves the function definition metadata for the given function name. -
isNotImplemented
Returnstrueif the function with the given name exists in the registry but has not yet been implemented. -
notImplementedFunctions
Returns the names of PromQL functions that are recognized but not yet implemented, sorted for deterministic output. Used by documentation generation to render the "Not yet supported" list straight from the registry. -
checkFunction
-
buildEsqlFunction
public Expression buildEsqlFunction(String name, Source source, Expression target, PromqlFunctionRegistry.PromqlContext ctx, List<Expression> extraParams)
-