mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-07 11:27:50 +00:00
Add Xor to docs
This commit is contained in:
parent
73904db391
commit
59d41a9cb3
1 changed files with 23 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ curl localhost:10101/index/repository/query \
|
|||
* `UINT` An unsigned integer (e.g. 42839)
|
||||
* `ATTR_NAME` Must be a valid identifier `[A-Za-z][A-Za-z0-9._-]*`
|
||||
* `ATTR_VALUE` Can be a string, float, integer, or bool.
|
||||
* `BITMAP_CALL` Any query which returns a bitmap, such as `Bitmap`, `Union`, `Difference`, `Intersect`, `Range`
|
||||
* `BITMAP_CALL` Any query which returns a bitmap, such as `Bitmap`, `Union`, `Difference`, `Xor`, `Intersect`, `Range`
|
||||
* `[]ATTR_VALUE` Denotes an array of `ATTR_VALUE`s. (e.g. `["a", "b", "c"]`)
|
||||
|
||||
### Write Operations
|
||||
|
|
@ -308,6 +308,28 @@ Return `{"attrs":{},"bits":[30]}`
|
|||
|
||||
* Bits are repositories that were starred by user 2 BUT NOT user 1
|
||||
|
||||
#### Xor
|
||||
|
||||
**Description:**
|
||||
|
||||
Xor performs a logical XOR on the results of each `BITMAP_CALL` query passed to it.
|
||||
|
||||
**Result Type:** object with attrs and bits
|
||||
|
||||
attrs will always be empty
|
||||
|
||||
**Examples:**
|
||||
|
||||
Query repositories which have been starred by two users.
|
||||
|
||||
```
|
||||
Xor(Bitmap(frame="stargazer", rowID=1), Bitmap(frame="stargazer", rowID=2))
|
||||
```
|
||||
|
||||
Returns `{"attrs":{},"bits":[30]}`.
|
||||
|
||||
* bits are repositories that were starred by user 1 XOR user 2 (user 1 or user 2, but not both)
|
||||
|
||||
#### Count
|
||||
**Spec:**
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue