Skip to content

Commit 487e451

Browse files
Document CDL Operators vs CAP Java Operators (#1892)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 9752d8f commit 487e451

1 file changed

Lines changed: 31 additions & 25 deletions

File tree

java/working-with-cql/query-api.md

Lines changed: 31 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,8 +1474,14 @@ These comparison operators are supported:
14741474
<table>
14751475
<thead>
14761476
<tr>
1477+
<th colspan="2" align=center>Operator</th><th/><th/>
1478+
</tr>
1479+
<tr>
1480+
<th>
1481+
CAP Java
1482+
</th>
14771483
<th>
1478-
Predicate
1484+
CDL
14791485
</th>
14801486
<th width="400">
14811487
Description
@@ -1488,11 +1494,9 @@ These comparison operators are supported:
14881494

14891495
<tbody>
14901496
<tr>
1497+
<td>EQ</td><td>=</td>
14911498
<td>
1492-
EQ
1493-
</td>
1494-
<td>
1495-
Test if this value equals a given value. NULL values might be treated as unknown resulting in a three-valued logic as in SQL.
1499+
Test if this value equals a given value. NULL values might be treated as unknown resulting in a <i>three-valued logic</i> as in SQL.
14961500
</td>
14971501
<td align="left">
14981502
<code>Select.from("bookshop.Books")
@@ -1502,11 +1506,9 @@ EQ
15021506
</tr>
15031507

15041508
<tr>
1509+
<td>NE</td><td>&lt;&gt;</td>
15051510
<td>
1506-
NE
1507-
</td>
1508-
<td>
1509-
Test if this value is NOT equal to a given value. NULL values might be treated as unknown resulting in a three-valued logic as in SQL.
1511+
Test if this value is NOT equal to a given value. NULL values might be treated as unknown resulting in a <i>three-valued logic</i> as in SQL.
15101512
</td>
15111513
<td>
15121514
<code>Select.from("bookshop.Books")
@@ -1516,11 +1518,9 @@ NE
15161518
</tr>
15171519

15181520
<tr>
1521+
<td>IS</td><td>==</td>
15191522
<td>
1520-
IS
1521-
</td>
1522-
<td>
1523-
Test if this value equals a given value. NULL values are treated as any other value.
1523+
Test if this value equals a given value. NULL values are treated as any other value (<i>Boolean logic</i>).
15241524
</td>
15251525
<td>
15261526

@@ -1532,11 +1532,9 @@ IS
15321532
</tr>
15331533

15341534
<tr>
1535+
<td>IS NOT</td><td>!=</td>
15351536
<td>
1536-
IS NOT
1537-
</td>
1538-
<td>
1539-
Test if this value is NOT equal to a given value. NULL values are treated as any other value.
1537+
Test if this value is NOT equal to a given value. NULL values are treated as any other value (<i>Boolean logic</i>).
15401538
</td>
15411539
<td>
15421540

@@ -1548,9 +1546,7 @@ IS NOT
15481546
</tr>
15491547

15501548
<tr>
1551-
<td>
1552-
GT
1553-
</td>
1549+
<td>GT</td><td>&gt;</td>
15541550
<td>
15551551
Test if this value is greater than a given value.
15561552
</td>
@@ -1564,9 +1560,21 @@ GT
15641560
</tr>
15651561

15661562
<tr>
1563+
<td>GE</td><td>&gt;=</td>
15671564
<td>
1568-
LT
1565+
Test if this value is greater than or equal to a given value.
15691566
</td>
1567+
<td>
1568+
1569+
<code>Select.from("bookshop.Books")
1570+
.where(b -> b.get("stock")
1571+
.<span class="na">ge</span>(5));</code>
1572+
1573+
</td>
1574+
</tr>
1575+
1576+
<tr>
1577+
<td>LT</td><td>&lt;</td>
15701578
<td>
15711579
Test if this value is less than a given value.
15721580
</td>
@@ -1580,9 +1588,7 @@ LT
15801588
</tr>
15811589

15821590
<tr>
1583-
<td>
1584-
LE
1585-
</td>
1591+
<td>LE</td><td>&lt;=</td>
15861592
<td>
15871593
Test if this value is less than or equal to a given value.
15881594
</td>
@@ -1596,7 +1602,7 @@ LE
15961602
</tr>
15971603

15981604
<tr>
1599-
<td>
1605+
<td colspan="2">
16001606
BETWEEN
16011607
</td>
16021608
<td>

0 commit comments

Comments
 (0)