Skip to content

Commit 445e7bb

Browse files
committed
Replacing table and markdown comment block
1 parent 8228c24 commit 445e7bb

File tree

1 file changed

+16
-37
lines changed
  • x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/multivalue

1 file changed

+16
-37
lines changed

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/scalar/multivalue/MvContains.java

Lines changed: 16 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -45,43 +45,22 @@
4545
import static org.elasticsearch.xpack.esql.core.expression.TypeResolutions.isRepresentableExceptCounters;
4646
import static org.elasticsearch.xpack.esql.core.expression.TypeResolutions.isType;
4747

48-
/// Function that takes two multivalued expressions and checks if values of one expression are all present(equals) in the other.
49-
///
50-
/// - Set A = {"a","b","c"}
51-
/// - Set B = {"b","c"}
52-
///
53-
/// <table style="border-spacing: 0;">
54-
/// <th>
55-
/// <td></td><td colspan=3> Second Argument </td>
56-
/// </th>
57-
/// <tr>
58-
/// <td></td>
59-
/// <td></td>
60-
/// <td> A </td>
61-
/// <td> B </td>
62-
/// <td> null </td>
63-
/// </tr>
64-
/// <tr>
65-
/// <td rowspan=3> First
66-
/// Argument</td>
67-
/// <td> A </td>
68-
/// <td style="border: thin solid; padding: 5px"> true </td>
69-
/// <td style="border: thin solid; padding: 5px"> true </td>
70-
/// <td style="border: thin solid; padding: 5px"> true </td>
71-
/// </tr>
72-
/// <tr>
73-
/// <td> B </td>
74-
/// <td style="border: thin solid; padding: 5px"> false </td>
75-
/// <td style="border: thin solid; padding: 5px"> true </td>
76-
/// <td style="border: thin solid; padding: 5px"> true </td>
77-
/// </tr>
78-
/// <tr>
79-
/// <td> null </td>
80-
/// <td style="border: thin solid; padding: 5px"> false </td>
81-
/// <td style="border: thin solid; padding: 5px"> false </td>
82-
/// <td style="border: thin solid; padding: 5px"> true </td>
83-
/// </tr>
84-
/// </table>
48+
/**
49+
* Function that takes two multivalued expressions and checks if values of one expression are all present(equals) in the other.
50+
* <p>
51+
* Given Set A = {"a","b","c"} and Set B = {"b","c"}, the relationship between first (row) and second (column) arguments is:
52+
* <ul>
53+
* <li>A, B &rArr; true (A &sube; B)</li>
54+
* <li>B, A &rArr; false (A &#8840; B)</li>
55+
* <li>A, A &rArr; true (A &equiv; A)</li>
56+
* <li>B, B &rArr; true (B &equiv; B)</li>
57+
* <li>A, null &rArr; true (B &sube; &empty;)</li>
58+
* <li>null, A &rArr; false (&empty; &#8840; B)</li>
59+
* <li>B, null &rArr; true (B &sube; &empty;)</li>
60+
* <li>null, B &rArr; false (&empty; &#8840; B)</li>
61+
* <li>null, null &rArr; true (&empty; &equiv; &empty;)</li>
62+
* </ul>
63+
*/
8564
public class MvContains extends BinaryScalarFunction implements EvaluatorMapper {
8665
public static final NamedWriteableRegistry.Entry ENTRY = new NamedWriteableRegistry.Entry(
8766
Expression.class,

0 commit comments

Comments
 (0)