Skip to content

Commit

Permalink
docs: remove @BetaApi annotations for count aggregations (#1051)
Browse files Browse the repository at this point in the history
  • Loading branch information
kolea2 committed Apr 26, 2023
1 parent 2a871e2 commit b8bdaa2
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import static com.google.cloud.datastore.AggregationQuery.Mode.STRUCTURED;
import static com.google.common.base.Preconditions.checkArgument;

import com.google.api.core.BetaApi;
import com.google.cloud.datastore.aggregation.Aggregation;
import com.google.cloud.datastore.aggregation.AggregationBuilder;
import java.util.HashSet;
Expand Down Expand Up @@ -67,7 +66,6 @@
* @see <a href="https://cloud.google.com/appengine/docs/java/datastore/queries">Datastore
* queries</a>
*/
@BetaApi
public class AggregationQuery extends Query<AggregationResults> {

private Set<Aggregation> aggregations;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@
*/
package com.google.cloud.datastore;

import com.google.api.core.BetaApi;
import com.google.common.base.MoreObjects;
import com.google.common.base.MoreObjects.ToStringHelper;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Objects;

/** Represents a result of an {@link AggregationQuery} query submission. */
@BetaApi
public class AggregationResult {

private final Map<String, LongValue> properties;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import static com.google.api.client.util.Preconditions.checkNotNull;

import com.google.api.core.BetaApi;
import com.google.api.core.InternalApi;
import com.google.cloud.Timestamp;
import java.util.Iterator;
Expand All @@ -30,7 +29,6 @@
*
* <p>This can be used to iterate over an underlying {@link List<AggregationResult>} directly.
*/
@BetaApi
public class AggregationResults implements Iterable<AggregationResult> {

private final List<AggregationResult> aggregationResults;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.datastore;

import com.google.api.core.BetaApi;
import com.google.cloud.Service;
import com.google.datastore.v1.TransactionOptions;
import java.util.Iterator;
Expand Down Expand Up @@ -506,7 +505,6 @@ interface TransactionCallable<T> {
* @throws DatastoreException upon failure
* @return {@link AggregationResults}
*/
@BetaApi
default AggregationResults runAggregation(AggregationQuery query, ReadOption... options) {
throw new UnsupportedOperationException("Not implemented.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.datastore;

import com.google.api.core.BetaApi;
import com.google.api.gax.retrying.RetrySettings;
import com.google.cloud.BaseService;
import com.google.cloud.ExceptionHandler;
Expand Down Expand Up @@ -198,13 +197,11 @@ <T> QueryResults<T> run(Optional<ReadOptions> readOptionsPb, Query<T> query) {
}

@Override
@BetaApi
public AggregationResults runAggregation(AggregationQuery query) {
return aggregationQueryExecutor.execute(query);
}

@Override
@BetaApi
public AggregationResults runAggregation(AggregationQuery query, ReadOption... options) {
return aggregationQueryExecutor.execute(query, options);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.google.cloud.datastore;

import com.google.api.core.BetaApi;
import java.util.Iterator;
import java.util.List;

Expand Down Expand Up @@ -60,7 +59,6 @@ public interface DatastoreReader {
*
* @throws DatastoreException upon failure
*/
@BetaApi
default AggregationResults runAggregation(AggregationQuery query) {
throw new UnsupportedOperationException("Not implemented.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@

package com.google.cloud.datastore.aggregation;

import com.google.api.core.BetaApi;
import com.google.api.core.InternalApi;
import com.google.datastore.v1.AggregationQuery;

/**
* Represents a Google Cloud Datastore Aggregation which is used with an {@link AggregationQuery}.
*/
@BetaApi
public abstract class Aggregation {

private final String alias;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,13 @@

package com.google.cloud.datastore.aggregation;

import com.google.api.core.BetaApi;

/**
* An interface to represent the builders which build and customize {@link Aggregation} for {@link
* com.google.cloud.datastore.AggregationQuery}.
*
* <p>Used by {@link
* com.google.cloud.datastore.AggregationQuery.Builder#addAggregation(AggregationBuilder)}.
*/
@BetaApi
public interface AggregationBuilder<A extends Aggregation> {
A build();
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@

package com.google.cloud.datastore.aggregation;

import com.google.api.core.BetaApi;
import com.google.datastore.v1.AggregationQuery;
import com.google.datastore.v1.AggregationQuery.Aggregation.Count;
import java.util.Objects;

/** Represents an {@link Aggregation} which returns count. */
@BetaApi
public class CountAggregation extends Aggregation {

/** @param alias Alias to used when running this aggregation. */
Expand Down

0 comments on commit b8bdaa2

Please sign in to comment.