Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yuce committed Apr 20, 2018
1 parent 59c44a3 commit b39dd7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/data-model-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ fmt.Println(response.Result().Bitmap.Bits)

// Query for the total number of animals in captivity
response, _ = client.Query(captivity.Sum(nil))
fmt.Println(response.Result().Sum)
fmt.Println(response.Result().Value())
```

It's possible to pass a bitmap query to `Sum`, so only columns where a row is set are filtered in:
Expand All @@ -94,7 +94,7 @@ client.Query(index.BatchQuery(
frame.SetBit(42, 6)))
// Query for the total number of animals in captivity where row 42 is set
response, _ = client.Query(captivity.Sum(frame.Bitmap(42)))
fmt.Println(response.Result().Sum)
fmt.Println(response.Result().Value())
```

See the *Field* functions further below for the list of functions that can be used with a `RangeField`.
Expand Down

0 comments on commit b39dd7f

Please sign in to comment.