File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -664,6 +664,17 @@ private void renderFunctionNamedParams(EsqlFunctionRegistry.MapArgSignature mapA
664664 writeToTempSnippetsDir ("functionNamedParams" , rendered .toString ());
665665 }
666666
667+ /**
668+ * Build the {@code {applies_to}} annotation for the docs to tell users which version of
669+ * Elasticsearch first supported this function/operator/signature.
670+ * @param functionAppliesTos The version information for stateful Elasticsearch
671+ * @param preview Is this tech preview? Effectively just generates the
672+ * {@code serverless: preview} annotation if true and nothing if false.
673+ * @param oneLine Should we generate a single line variant of the {@code {applies_to}}
674+ * annotation compatible with tables (true) or the more readable
675+ * multi-line variant (false)?
676+ * @return Text of the {@code {applies_to}} annotation
677+ */
667678 private static String makeAppliesToText (List <FunctionAppliesTo > functionAppliesTos , boolean preview , boolean oneLine ) {
668679 StringBuilder appliesToText = new StringBuilder ();
669680 if (false == functionAppliesTos .isEmpty ()) {
You can’t perform that action at this time.
0 commit comments