Skip to content

Commit 54d0e93

Browse files
committed
Make count queries publicly available for use
1 parent ed10eb5 commit 54d0e93

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

firebase-firestore/src/main/java/com/google/firebase/firestore/AggregateQuery.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* in test mocks. Subclassing is not supported in production code and new SDK releases may break
2929
* code that does so.
3030
*/
31-
class AggregateQuery {
31+
public class AggregateQuery {
3232
// The base query.
3333
private final Query query;
3434

firebase-firestore/src/main/java/com/google/firebase/firestore/AggregateQuerySnapshot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* in test mocks. Subclassing is not supported in production code and new SDK releases may break
2828
* code that does so.
2929
*/
30-
class AggregateQuerySnapshot {
30+
public class AggregateQuerySnapshot {
3131

3232
private final long count;
3333
private final AggregateQuery query;

firebase-firestore/src/main/java/com/google/firebase/firestore/AggregateSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
package com.google.firebase.firestore;
1616

1717
/** Configures the behavior of {@link AggregateQuery#get}. */
18-
enum AggregateSource {
18+
public enum AggregateSource {
1919
/**
2020
* Reach to the Firestore backend and surface the result verbatim, that is no local documents or
2121
* mutations in the SDK cache will be included in the surfaced result.

firebase-firestore/src/main/java/com/google/firebase/firestore/Query.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ private void validateHasExplicitOrderByForLimitToLast() {
12301230
* the result set of this query.
12311231
*/
12321232
@NonNull
1233-
AggregateQuery count() {
1233+
public AggregateQuery count() {
12341234
return new AggregateQuery(this);
12351235
}
12361236

0 commit comments

Comments
 (0)