Skip to content

Commit 050059b

Browse files
committed
Javadoc
1 parent b94d9d8 commit 050059b

File tree

1 file changed

+11
-0
lines changed
  • x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function

1 file changed

+11
-0
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/DocsV3Support.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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()) {

0 commit comments

Comments
 (0)