Skip to content
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

feat: implement query profile #1365

Merged
merged 19 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
add betaapi in a few more places
  • Loading branch information
kolea2 committed Mar 18, 2024
commit 12e127866cfe49f1e5ca7cad4c2d44d6fbf498f3
Expand Up @@ -39,6 +39,7 @@ public class AggregationResults implements Iterable<AggregationResult> {

private final ExplainMetrics explainMetrics;

@BetaApi
public AggregationResults(
List<AggregationResult> aggregationResults,
Timestamp readTime,
Expand Down
Expand Up @@ -16,6 +16,7 @@

package com.google.cloud.datastore;

import com.google.api.core.BetaApi;
import com.google.cloud.datastore.models.ExplainOptions;
import java.util.Iterator;
import java.util.List;
Expand Down Expand Up @@ -70,6 +71,7 @@ default AggregationResults runAggregation(AggregationQuery query) {
*
* @throws DatastoreException upon failure
*/
@BetaApi
default AggregationResults runAggregation(AggregationQuery query, ExplainOptions explainOptions) {
throw new UnsupportedOperationException("Not implemented.");
}
Expand Down
Expand Up @@ -122,6 +122,7 @@ public AggregationResults runAggregation(AggregationQuery query) {
}

@Override
@BetaApi
public AggregationResults runAggregation(AggregationQuery query, ExplainOptions explainOptions) {
return datastore.runAggregation(query, explainOptions, transactionId(transactionId));
}
Expand Down