Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b8bdaa2

Browse files
authored
docs: remove @BetaApi annotations for count aggregations (#1051)
1 parent 2a871e2 commit b8bdaa2

File tree

9 files changed

+0
-20
lines changed

9 files changed

+0
-20
lines changed

google-cloud-datastore/src/main/java/com/google/cloud/datastore/AggregationQuery.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import static com.google.cloud.datastore.AggregationQuery.Mode.STRUCTURED;
2020
import static com.google.common.base.Preconditions.checkArgument;
2121

22-
import com.google.api.core.BetaApi;
2322
import com.google.cloud.datastore.aggregation.Aggregation;
2423
import com.google.cloud.datastore.aggregation.AggregationBuilder;
2524
import java.util.HashSet;
@@ -67,7 +66,6 @@
6766
* @see <a href="https://cloud.google.com/appengine/docs/java/datastore/queries">Datastore
6867
* queries</a>
6968
*/
70-
@BetaApi
7169
public class AggregationQuery extends Query<AggregationResults> {
7270

7371
private Set<Aggregation> aggregations;

google-cloud-datastore/src/main/java/com/google/cloud/datastore/AggregationResult.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@
1515
*/
1616
package com.google.cloud.datastore;
1717

18-
import com.google.api.core.BetaApi;
1918
import com.google.common.base.MoreObjects;
2019
import com.google.common.base.MoreObjects.ToStringHelper;
2120
import java.util.Map;
2221
import java.util.Map.Entry;
2322
import java.util.Objects;
2423

2524
/** Represents a result of an {@link AggregationQuery} query submission. */
26-
@BetaApi
2725
public class AggregationResult {
2826

2927
private final Map<String, LongValue> properties;

google-cloud-datastore/src/main/java/com/google/cloud/datastore/AggregationResults.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

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

20-
import com.google.api.core.BetaApi;
2120
import com.google.api.core.InternalApi;
2221
import com.google.cloud.Timestamp;
2322
import java.util.Iterator;
@@ -30,7 +29,6 @@
3029
*
3130
* <p>This can be used to iterate over an underlying {@link List<AggregationResult>} directly.
3231
*/
33-
@BetaApi
3432
public class AggregationResults implements Iterable<AggregationResult> {
3533

3634
private final List<AggregationResult> aggregationResults;

google-cloud-datastore/src/main/java/com/google/cloud/datastore/Datastore.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.datastore;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.cloud.Service;
2120
import com.google.datastore.v1.TransactionOptions;
2221
import java.util.Iterator;
@@ -506,7 +505,6 @@ interface TransactionCallable<T> {
506505
* @throws DatastoreException upon failure
507506
* @return {@link AggregationResults}
508507
*/
509-
@BetaApi
510508
default AggregationResults runAggregation(AggregationQuery query, ReadOption... options) {
511509
throw new UnsupportedOperationException("Not implemented.");
512510
}

google-cloud-datastore/src/main/java/com/google/cloud/datastore/DatastoreImpl.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.datastore;
1818

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

200199
@Override
201-
@BetaApi
202200
public AggregationResults runAggregation(AggregationQuery query) {
203201
return aggregationQueryExecutor.execute(query);
204202
}
205203

206204
@Override
207-
@BetaApi
208205
public AggregationResults runAggregation(AggregationQuery query, ReadOption... options) {
209206
return aggregationQueryExecutor.execute(query, options);
210207
}

google-cloud-datastore/src/main/java/com/google/cloud/datastore/DatastoreReader.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package com.google.cloud.datastore;
1818

19-
import com.google.api.core.BetaApi;
2019
import java.util.Iterator;
2120
import java.util.List;
2221

@@ -60,7 +59,6 @@ public interface DatastoreReader {
6059
*
6160
* @throws DatastoreException upon failure
6261
*/
63-
@BetaApi
6462
default AggregationResults runAggregation(AggregationQuery query) {
6563
throw new UnsupportedOperationException("Not implemented.");
6664
}

google-cloud-datastore/src/main/java/com/google/cloud/datastore/aggregation/Aggregation.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@
1616

1717
package com.google.cloud.datastore.aggregation;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.api.core.InternalApi;
2120
import com.google.datastore.v1.AggregationQuery;
2221

2322
/**
2423
* Represents a Google Cloud Datastore Aggregation which is used with an {@link AggregationQuery}.
2524
*/
26-
@BetaApi
2725
public abstract class Aggregation {
2826

2927
private final String alias;

google-cloud-datastore/src/main/java/com/google/cloud/datastore/aggregation/AggregationBuilder.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,13 @@
1616

1717
package com.google.cloud.datastore.aggregation;
1818

19-
import com.google.api.core.BetaApi;
20-
2119
/**
2220
* An interface to represent the builders which build and customize {@link Aggregation} for {@link
2321
* com.google.cloud.datastore.AggregationQuery}.
2422
*
2523
* <p>Used by {@link
2624
* com.google.cloud.datastore.AggregationQuery.Builder#addAggregation(AggregationBuilder)}.
2725
*/
28-
@BetaApi
2926
public interface AggregationBuilder<A extends Aggregation> {
3027
A build();
3128
}

google-cloud-datastore/src/main/java/com/google/cloud/datastore/aggregation/CountAggregation.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@
1616

1717
package com.google.cloud.datastore.aggregation;
1818

19-
import com.google.api.core.BetaApi;
2019
import com.google.datastore.v1.AggregationQuery;
2120
import com.google.datastore.v1.AggregationQuery.Aggregation.Count;
2221
import java.util.Objects;
2322

2423
/** Represents an {@link Aggregation} which returns count. */
25-
@BetaApi
2624
public class CountAggregation extends Aggregation {
2725

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

0 commit comments

Comments
 (0)