-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Revert "Revert "Public count (#10246)" (#10252)" This reverts commit b695d99. * Firestore: Re-write API docs for COUNT API (#10258) * Add isEqual and hash for aggregate classes (#10261) Co-authored-by: Denver Coneybeare <dconeybe@google.com> Co-authored-by: Ehsan <ehsannas@gmail.com>
- Loading branch information
1 parent
7ad2380
commit 4232ac1
Showing
13 changed files
with
284 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
Firestore/Source/Public/FirebaseFirestore/FIRAggregateQuery.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright 2022 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
#import "FIRAggregateSource.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@class FIRQuery; | ||
@class FIRAggregateQuerySnapshot; | ||
|
||
/** | ||
* A query that calculates aggregations over an underlying query. | ||
*/ | ||
NS_SWIFT_NAME(AggregateQuery) | ||
@interface FIRAggregateQuery : NSObject | ||
|
||
/** :nodoc: */ | ||
- (instancetype)init __attribute__((unavailable("FIRAggregateQuery cannot be created directly."))); | ||
|
||
/** The query whose aggregations will be calculated by this object. */ | ||
@property(nonatomic, readonly) FIRQuery *query; | ||
|
||
/** | ||
* Executes this query. | ||
* | ||
* @param source The source from which to acquire the aggregate results. | ||
* @param completion a block to execute once the results have been successfully read. | ||
* snapshot will be `nil` only if error is `non-nil`. | ||
*/ | ||
- (void)aggregationWithSource:(FIRAggregateSource)source | ||
completion:(void (^)(FIRAggregateQuerySnapshot *_Nullable snapshot, | ||
NSError *_Nullable error))completion | ||
NS_SWIFT_NAME(getAggregation(source:completion:)); | ||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
Oops, something went wrong.