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 TypeClassDescriptionprotected static interfaceprotected static interfacestatic final recordRepresents the parameter count constraints for a PromQL function.static enumDescribes whether a PromQL function supports counter metric types.static interfacestatic final recordFunction definition record for registration and metadata.protected static interfaceprotected static interfacestatic final recordstatic final recordprotected static interfaceprotected static interfaceprotected static interfaceprotected static interfaceprotected static interfaceprotected static interface -
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.
-
Field Details
-
INSTANCE
-
-
Method Details
-
allFunctions
-
functionMetadata
Retrieves the function definition metadata for the given function name. -
checkFunction
-
buildEsqlFunction
public Expression buildEsqlFunction(String name, Source source, Expression target, PromqlFunctionRegistry.PromqlContext ctx, List<Expression> extraParams)
-