-
Notifications
You must be signed in to change notification settings - Fork 616
Firestore: Re-write API javadocs for COUNT API #4143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 9 commits
32ae16e
429d710
f302b09
1c8e6e1
d995ce0
1580215
b9265f1
dcf5ec3
e7ed96c
df265cd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1224,10 +1224,17 @@ private void validateHasExplicitOrderByForLimitToLast() { | |
} | ||
|
||
/** | ||
* Creates an {@link AggregateQuery} counting the number of documents matching this query. | ||
* Returns a query that counts the documents in the result set of this query. | ||
* | ||
* @return An {@link AggregateQuery} object that can be used to count the number of documents in | ||
* the result set of this query. | ||
* <p>The returned query, when executed, counts the documents in the result set of this query | ||
* <em>without actually downloading the documents</em>. The count is performed on the server and | ||
* only the resulting count is downloaded. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this sentence should be removed.. Depending on the SOURCE that is used for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed. I was trying to figure out how to word it to convey its efficiency. But I think it's probably fine without this staement. |
||
* | ||
* <p>Using the returned query to count the documents is efficient because only the final count, | ||
* not the documents' data, is downloaded. The returned query can even count the documents if the | ||
* result set would be prohibitively large to download entirely (e.g. thousands of documents). | ||
* | ||
* @return a query that counts the documents in the result set of this query. | ||
*/ | ||
@NonNull | ||
public AggregateQuery count() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please double-check whether closing
and tags are required here and a few lines below, and in corresponding docstrings in other source files.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I originally had the closings tags in there, but the code formatter actually removed them!