Skip to content

Commit 7a2e02f

Browse files
authored
Remove @Beta from query builders related to $setWindowFields (#957)
JAVA-4559
1 parent 9fcdefd commit 7a2e02f

File tree

9 files changed

+0
-25
lines changed

9 files changed

+0
-25
lines changed

driver-core/src/main/com/mongodb/client/model/Aggregates.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package com.mongodb.client.model;
1818

1919
import com.mongodb.MongoNamespace;
20-
import com.mongodb.annotations.Beta;
2120
import com.mongodb.client.model.search.SearchOperator;
2221
import com.mongodb.client.model.search.SearchCollector;
2322
import com.mongodb.client.model.search.SearchOptions;
@@ -622,7 +621,6 @@ public static Bson sample(final int size) {
622621
* @mongodb.server.release 5.0
623622
* @since 4.3
624623
*/
625-
@Beta(Beta.Reason.SERVER)
626624
public static <TExpression> Bson setWindowFields(@Nullable final TExpression partitionBy, @Nullable final Bson sortBy,
627625
final WindowedComputation... output) {
628626
notNull("output", output);
@@ -649,7 +647,6 @@ public static <TExpression> Bson setWindowFields(@Nullable final TExpression par
649647
* @mongodb.server.release 5.0
650648
* @since 4.3
651649
*/
652-
@Beta(Beta.Reason.SERVER)
653650
public static <TExpression> Bson setWindowFields(@Nullable final TExpression partitionBy, @Nullable final Bson sortBy,
654651
final List<WindowedComputation> output) {
655652
notNull("output", output);

driver-core/src/main/com/mongodb/client/model/MongoTimeUnit.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,13 @@
1515
*/
1616
package com.mongodb.client.model;
1717

18-
import com.mongodb.annotations.Beta;
19-
2018
/**
2119
* Units for specifying time-based bounds for {@linkplain Window windows} and output units for some time-based
2220
* {@linkplain WindowedComputation windowed computations}.
2321
*
2422
* @mongodb.server.release 5.0
2523
* @since 4.3
2624
*/
27-
@Beta(Beta.Reason.SERVER)
2825
public enum MongoTimeUnit {
2926
/**
3027
* YEAR

driver-core/src/main/com/mongodb/client/model/Window.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package com.mongodb.client.model;
1717

18-
import com.mongodb.annotations.Beta;
1918
import org.bson.conversions.Bson;
2019

2120
import java.util.List;
@@ -27,6 +26,5 @@
2726
* @see Windows
2827
* @since 4.3
2928
*/
30-
@Beta(Beta.Reason.SERVER)
3129
public interface Window extends Bson {
3230
}

driver-core/src/main/com/mongodb/client/model/WindowedComputation.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package com.mongodb.client.model;
1717

18-
import com.mongodb.annotations.Beta;
1918
import org.bson.conversions.Bson;
2019

2120
import java.util.List;
@@ -27,7 +26,6 @@
2726
* @see WindowedComputations
2827
* @since 4.3
2928
*/
30-
@Beta(Beta.Reason.SERVER)
3129
public interface WindowedComputation {
3230
/**
3331
* Render into {@link BsonField}.

driver-core/src/main/com/mongodb/client/model/WindowedComputations.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package com.mongodb.client.model;
1717

18-
import com.mongodb.annotations.Beta;
1918
import com.mongodb.client.model.Windows.Bound;
2019
import com.mongodb.lang.Nullable;
2120
import org.bson.BsonDocument;
@@ -57,7 +56,6 @@
5756
* @since 4.3
5857
* @mongodb.server.release 5.0
5958
*/
60-
@Beta(Beta.Reason.SERVER)
6159
public final class WindowedComputations {
6260
/**
6361
* Creates a windowed computation from a document field in situations when there is no builder method that better satisfies your needs.

driver-core/src/main/com/mongodb/client/model/Windows.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package com.mongodb.client.model;
1717

18-
import com.mongodb.annotations.Beta;
1918
import com.mongodb.lang.Nullable;
2019
import org.bson.BsonDocument;
2120
import org.bson.BsonDocumentWriter;
@@ -84,7 +83,6 @@
8483
* @mongodb.server.release 5.0
8584
* @since 4.3
8685
*/
87-
@Beta(Beta.Reason.SERVER)
8886
public final class Windows {
8987
/**
9088
* Creates a window from {@link Bson} in situations when there is no builder method that better satisfies your needs.
@@ -340,7 +338,6 @@ private Windows() {
340338
* @mongodb.server.release 5.0
341339
* @since 4.3
342340
*/
343-
@Beta(Beta.Reason.SERVER)
344341
public enum Bound {
345342
/**
346343
* The {@linkplain Window window} bound is determined by the current document and is inclusive.

driver-scala/src/main/scala/org/mongodb/scala/model/Aggregates.scala

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

1717
package org.mongodb.scala.model
1818

19-
import com.mongodb.annotations.Beta
20-
2119
import scala.collection.JavaConverters._
2220
import com.mongodb.client.model.{ Aggregates => JAggregates }
2321
import org.mongodb.scala.MongoNamespace
@@ -475,7 +473,6 @@ object Aggregates {
475473
* @since 4.3
476474
* @note Requires MongoDB 5.0 or greater.
477475
*/
478-
@Beta(Array(Beta.Reason.SERVER))
479476
def setWindowFields[TExpression >: Null](
480477
partitionBy: Option[TExpression],
481478
sortBy: Option[Bson],

driver-scala/src/main/scala/org/mongodb/scala/model/WindowedComputations.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package org.mongodb.scala.model
1717

18-
import com.mongodb.annotations.Beta
1918
import com.mongodb.client.model.{ MongoTimeUnit => JMongoTimeUnit, WindowedComputations => JWindowedComputations }
2019

2120
/**
@@ -38,7 +37,6 @@ import com.mongodb.client.model.{ MongoTimeUnit => JMongoTimeUnit, WindowedCompu
3837
* @since 4.3
3938
* @note Requires MongoDB 5.0 or greater.
4039
*/
41-
@Beta(Array(Beta.Reason.SERVER))
4240
object WindowedComputations {
4341

4442
/**

driver-scala/src/main/scala/org/mongodb/scala/model/package.scala

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

1717
package org.mongodb.scala
1818

19-
import com.mongodb.annotations.Beta
20-
2119
import scala.collection.JavaConverters._
2220
import com.mongodb.client.model.{ MongoTimeUnit => JMongoTimeUnit }
2321
import org.mongodb.scala.bson.conversions.Bson
@@ -873,7 +871,6 @@ package object model {
873871
* @since 4.3
874872
* @note Requires MongoDB 5.0 or greater.
875873
*/
876-
@Beta(Array(Beta.Reason.SERVER))
877874
object MongoTimeUnit {
878875

879876
val YEAR = JMongoTimeUnit.YEAR
@@ -902,7 +899,6 @@ package object model {
902899
* @see [[Windows]]
903900
* @since 4.3
904901
*/
905-
@Beta(Array(Beta.Reason.SERVER))
906902
type Window = com.mongodb.client.model.Window
907903

908904
/**
@@ -912,7 +908,6 @@ package object model {
912908
* @see [[WindowedComputations]]
913909
* @since 4.3
914910
*/
915-
@Beta(Array(Beta.Reason.SERVER))
916911
type WindowedComputation = com.mongodb.client.model.WindowedComputation
917912
}
918913

0 commit comments

Comments
 (0)