This repository was archived by the owner on Feb 24, 2026. It is now read-only.
Repository navigation
samples: Add sample snippets for count aggregations #871
Merged
Merged
Changes from 1 commit
Commits
Show all changes
88 commits
Select commit
Hold shift + click to select a range
ce4c149
Add method in Datastore client to invoke rpc for aggregation query
jainsahab 100115f
Creating count aggregation and using it to populate Aggregation proto
jainsahab c1956d8
Moving aggregation builder method to root level aggregation class
jainsahab 493edfa
Introducing RecordQuery to represent queries which returns entity rec…
jainsahab 9c7c4ba
Updating gitignore with patch extension
jainsahab cf49a37
Setting up structure of Aggregation query and its builder
jainsahab 78fd6c9
Introducing ProtoPreparer to populate the request protos
jainsahab 2ae957a
Delegating responsibility of preparing query proto to QueryPreparer
jainsahab 14ac55f
Populating aggregation query with nested structured query
jainsahab 3ff182f
Delegating responsibility of preparing query proto in GqlQuery to Que…
jainsahab 7de95e6
Removing RecordQuery from the query hierarchy and making it a standal…
jainsahab d62964f
Populating aggregation query with nested gql query
jainsahab 1f5b1a4
Removing deprecation warning by using assertThrows instead of Expecte…
jainsahab b69b166
Making DatastoreRpc call aggregation query method on client
jainsahab 9589f5c
Creating response transformer to transform aggregation query response…
jainsahab 2103b80
Implementing aggregation query executor to execute AggergationQuery
jainsahab 775c341
Adding missing assertion statements
jainsahab 8872a55
Creating RetryExecutor to inject it as a dependency in other components
jainsahab 1dfafb7
Making RetryExecutor accept RetrySettings when creating it
jainsahab f6bf0ce
Revert "Making RetryExecutor accept RetrySettings when creating it"
jainsahab deb63bf
Revert "Creating RetryExecutor to inject it as a dependency in other …
jainsahab 428e9e3
Introducing RetryAndTraceDatastoreRpcDecorator to have retry and trac…
jainsahab c86913e
Extracting out the responsibility of preparing ReadOption in it's own…
jainsahab b235935
Making QueryExecutor to execute query with provided ReadOptions
jainsahab f1c3379
Exposing readTime to the user
jainsahab 168b864
Ignoring runAggregationQuery method from clirr check
jainsahab 005429b
Making readTime final
jainsahab dfbdf60
Allowing namespace to be optional in AggregationQuery
jainsahab 0565ba6
Add capability to fetch aggregation result by passing alias
jainsahab 0e8e7b9
Implementing User facing datastore.runAggrgation method to run aggreg…
jainsahab fc0f0dd
Add integration test for count aggregation
jainsahab e6cbca6
Add transaction Id support in ReadOptionsProtoPreparer
jainsahab d205997
Supporting aggregation query with transactions
jainsahab 5097cd6
Allowing user to create Aggregation directly without involving its bu…
jainsahab 6508ff6
Preventing creating duplicated aggregation when creating an aggregati…
jainsahab 5f1e419
Marking RecordQuery implemented method as InternalApi
jainsahab 5e2fcb3
Writing comments and JavaDoc for aggregation query related class
jainsahab 372a2d7
Adding a default implementation in the public interfaces to avoid com…
jainsahab 31e0c5a
Merge branch 'main' into count_feature
jainsahab 2c2cf63
covering a scenario to maintain consistent snapshot when executing ag…
jainsahab 4719ae8
Creating emulator proxy to simulate AggregationQuery response from em…
jainsahab 8edebda
Integration test to execute an aggregation query in a read only trans…
jainsahab ecdc04e
Merge branch 'main' into count_feature
jainsahab 394a642
Count aggregation samples with structuredQuery and gql query
jainsahab 41cbef7
Count aggregation samples to demonstrate stale read
jainsahab 842df2d
Getting rid off limit operation on count aggregation as same behaviou…
jainsahab 8c81b9f
Removing import statement from javadoc and undo changes in .gitignore…
jainsahab 1584d9f
Using Optional instead of returning null from ReadOptionsProtoPreparer
jainsahab bc425dd
using assertThat from Truth library
jainsahab 5801641
Removing 'limit' api from count query samples
jainsahab 8479fd2
Merge branch 'main' into count_feature
jainsahab 41df1bc
fixing unit test
jainsahab 1606584
Getting rid off Double braces initialization syntax
jainsahab ca27e75
Fixing lint
jainsahab 9ff91d9
Getting rid off emulator proxy and using easy mock to check the aggre…
jainsahab 6953efe
Deleting a entity created locally in other test which is causing fail…
jainsahab d2e1969
Deleting all keys in datastore in integration test so that new test c…
jainsahab 39812d4
Executing two read write transaction simultaneously and verifying the…
jainsahab 2d9e81a
Removing tests to verify serializability as it's an underlying implem…
jainsahab 90ab7cb
Fixing lint
jainsahab a48b323
Merge branch 'main' into count_feature
jainsahab aae2620
Adding runAggregationQuery method to reflect config so that it's avai…
jainsahab c2a8bc7
Merge branch 'count_feature' into count_feature_sample
jainsahab f9b41b2
Aggregation query samples with limit and order by option
jainsahab a4cf366
Aggregation query samples with transactions
jainsahab e265f35
fixing lint and reusing sysoutRule
jainsahab 4a9c7ba
correcting region tag
jainsahab 485212d
simplifying tearDown method
jainsahab 9c93a6c
Merge branch 'main' into count_feature_sample
jainsahab 7d66848
Reverting back to using Task domain for aggregation query samples
jainsahab 1af69af
Limiting tearDown method to delete only Task entities
jainsahab 9871515
Splitting count aggregation query samples into individual java files
jainsahab 6e6a423
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] 54ace27
Adding missing header
jainsahab 170590b
Sticking to the practise of deleting the old created data in setUp of…
jainsahab 670face
Moving comment to the top of statement.
jainsahab 67b2602
Making builder syntax multiline
jainsahab ebc998d
Adding comment describing the purpose of GQL query
jainsahab 9988599
Rephrasing the comment
jainsahab c3fa6d7
Adding a comment describing the purpose of the GQL query
jainsahab 11a4230
Rephrasing the comment
jainsahab 7189f80
Relocating region tags to include import statments
jainsahab 350ab61
Few styling and comment fixes
jainsahab abd2b95
Adding comment in the transaction block
jainsahab 1adf105
Adding fullstop to the comment lines
jainsahab e89fde6
Showcasing with/without alias usage separately
jainsahab 36f82fa
Importing static methods are we are now including import statements i…
jainsahab de89eb9
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Few styling and comment fixes
- Loading branch information
commit 350ab615f353a32d3a7a12648f66d9dc91ed0ffa
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.