diff --git a/driver-core/src/main/com/mongodb/annotations/Evolving.java b/driver-core/src/main/com/mongodb/annotations/Evolving.java index 0a136d93304..c6d58e3d4c2 100644 --- a/driver-core/src/main/com/mongodb/annotations/Evolving.java +++ b/driver-core/src/main/com/mongodb/annotations/Evolving.java @@ -18,6 +18,9 @@ package com.mongodb.annotations; +import com.mongodb.connection.StreamFactoryFactory; +import org.bson.conversions.Bson; + import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; @@ -30,6 +33,41 @@ * of doing extra work during upgrades. * Using such program elements is no different from using ordinary unannotated program elements. * Note that the presence of this annotation implies nothing about the quality or performance of the API in question. + *

+ * Unless we currently want to allow users to extend/implement API program elements, we must annotate them with + * {@code @}{@link Sealed} rather than {@code @}{@link Evolving}. Replacing {@code @}{@link Sealed} with {@code @}{@link Evolving} + * is a backward-compatible change, while the opposite is not.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Reasons we may allow users to extend/implement an API program element
ReasonExampleApplicability of {@code @}{@link Evolving}
Doing so allows/simplifies integrating user code with the API.{@link Bson}Not applicable.
Doing so allows customizing API behavior.{@link StreamFactoryFactory}Not applicable.
Doing so facilitates writing application unit tests by creating a fake implementation.{@code com.mongodb.client.MongoClient}Applicable.
The program element was introduced before {@code @}{@link Evolving}.{@code com.mongodb.client.MongoClient}Applicable.
+ * + * @see Sealed */ @Retention(RetentionPolicy.CLASS) @Target(ElementType.TYPE) diff --git a/driver-core/src/main/com/mongodb/annotations/Sealed.java b/driver-core/src/main/com/mongodb/annotations/Sealed.java index 59a2b2a7473..0a091fa7cc2 100644 --- a/driver-core/src/main/com/mongodb/annotations/Sealed.java +++ b/driver-core/src/main/com/mongodb/annotations/Sealed.java @@ -26,13 +26,15 @@ /** * Signifies that the annotated class or interface should be treated as sealed: - * it must not be extended or implemented. + * it must not be extended or implemented by consumers of the library. * *

Using such classes and interfaces is no different from using ordinary * unannotated classes and interfaces. * *

This annotation does not imply that the API is experimental or * {@link Beta}, or that the quality or performance of the API is inferior. + * + * @see Evolving */ @Retention(RetentionPolicy.CLASS) @Target(ElementType.TYPE) diff --git a/driver-core/src/main/com/mongodb/client/model/search/AddSearchScoreExpression.java b/driver-core/src/main/com/mongodb/client/model/search/AddSearchScoreExpression.java index be770f16203..11411ca923d 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/AddSearchScoreExpression.java +++ b/driver-core/src/main/com/mongodb/client/model/search/AddSearchScoreExpression.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchScoreExpression#addExpression(Iterable) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface AddSearchScoreExpression extends SearchScoreExpression { } diff --git a/driver-core/src/main/com/mongodb/client/model/search/AutocompleteSearchOperator.java b/driver-core/src/main/com/mongodb/client/model/search/AutocompleteSearchOperator.java index 1d8bfee0f21..2a700e6a770 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/AutocompleteSearchOperator.java +++ b/driver-core/src/main/com/mongodb/client/model/search/AutocompleteSearchOperator.java @@ -16,14 +16,14 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchOperator#autocomplete(FieldSearchPath, String, String...) * @see SearchOperator#autocomplete(FieldSearchPath, Iterable) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface AutocompleteSearchOperator extends SearchOperator { @Override diff --git a/driver-core/src/main/com/mongodb/client/model/search/CompoundSearchOperator.java b/driver-core/src/main/com/mongodb/client/model/search/CompoundSearchOperator.java index 133ebf6f1c8..3d1549fb2fa 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/CompoundSearchOperator.java +++ b/driver-core/src/main/com/mongodb/client/model/search/CompoundSearchOperator.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchOperator#compound() * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface CompoundSearchOperator extends CompoundSearchOperatorBase, SearchOperator { @Override diff --git a/driver-core/src/main/com/mongodb/client/model/search/CompoundSearchOperatorBase.java b/driver-core/src/main/com/mongodb/client/model/search/CompoundSearchOperatorBase.java index 584ac7d187f..f3fe27dbe3d 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/CompoundSearchOperatorBase.java +++ b/driver-core/src/main/com/mongodb/client/model/search/CompoundSearchOperatorBase.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * A base for a {@link CompoundSearchOperator} which allows creating instances of this operator. @@ -25,7 +25,7 @@ * @see SearchOperator#compound() * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface CompoundSearchOperatorBase { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/ConstantSearchScore.java b/driver-core/src/main/com/mongodb/client/model/search/ConstantSearchScore.java index df5d399ea54..31c9cfb4c21 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/ConstantSearchScore.java +++ b/driver-core/src/main/com/mongodb/client/model/search/ConstantSearchScore.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchScore#constant(float) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface ConstantSearchScore extends SearchScore { } diff --git a/driver-core/src/main/com/mongodb/client/model/search/ConstantSearchScoreExpression.java b/driver-core/src/main/com/mongodb/client/model/search/ConstantSearchScoreExpression.java index 183c02d1cec..e7ae9be59f2 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/ConstantSearchScoreExpression.java +++ b/driver-core/src/main/com/mongodb/client/model/search/ConstantSearchScoreExpression.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchScoreExpression#constantExpression(float) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface ConstantSearchScoreExpression extends SearchScoreExpression { } diff --git a/driver-core/src/main/com/mongodb/client/model/search/DateNearSearchOperator.java b/driver-core/src/main/com/mongodb/client/model/search/DateNearSearchOperator.java index 4b61428566a..5edb7a02756 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/DateNearSearchOperator.java +++ b/driver-core/src/main/com/mongodb/client/model/search/DateNearSearchOperator.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; import java.time.Duration; import java.time.Instant; @@ -26,7 +26,7 @@ * @see SearchOperator#near(Instant, Duration, Iterable) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface DateNearSearchOperator extends SearchOperator { @Override diff --git a/driver-core/src/main/com/mongodb/client/model/search/DateRangeSearchOperator.java b/driver-core/src/main/com/mongodb/client/model/search/DateRangeSearchOperator.java index f7aa0a16abb..dfa98485837 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/DateRangeSearchOperator.java +++ b/driver-core/src/main/com/mongodb/client/model/search/DateRangeSearchOperator.java @@ -16,14 +16,14 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchOperator#dateRange(FieldSearchPath, FieldSearchPath...) * @see SearchOperator#dateRange(Iterable) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface DateRangeSearchOperator extends DateRangeSearchOperatorBase, SearchOperator { @Override diff --git a/driver-core/src/main/com/mongodb/client/model/search/DateRangeSearchOperatorBase.java b/driver-core/src/main/com/mongodb/client/model/search/DateRangeSearchOperatorBase.java index 443cb2ccfca..b7db8c190e9 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/DateRangeSearchOperatorBase.java +++ b/driver-core/src/main/com/mongodb/client/model/search/DateRangeSearchOperatorBase.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; import java.time.Instant; @@ -28,7 +28,7 @@ * @see SearchOperator#dateRange(Iterable) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface DateRangeSearchOperatorBase { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/DateSearchFacet.java b/driver-core/src/main/com/mongodb/client/model/search/DateSearchFacet.java index c2c003aadad..936ac3040f8 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/DateSearchFacet.java +++ b/driver-core/src/main/com/mongodb/client/model/search/DateSearchFacet.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchFacet#dateFacet(String, FieldSearchPath, Iterable) * @since 4.7 */ -@Evolving +@Sealed @Beta({Beta.Reason.CLIENT, Beta.Reason.SERVER}) public interface DateSearchFacet extends SearchFacet { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/ExistsSearchOperator.java b/driver-core/src/main/com/mongodb/client/model/search/ExistsSearchOperator.java index 5347448d61d..cb847a49b66 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/ExistsSearchOperator.java +++ b/driver-core/src/main/com/mongodb/client/model/search/ExistsSearchOperator.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchOperator#exists(FieldSearchPath) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface ExistsSearchOperator extends SearchOperator { @Override diff --git a/driver-core/src/main/com/mongodb/client/model/search/FacetSearchCollector.java b/driver-core/src/main/com/mongodb/client/model/search/FacetSearchCollector.java index e3aaf998482..72be0245b2c 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/FacetSearchCollector.java +++ b/driver-core/src/main/com/mongodb/client/model/search/FacetSearchCollector.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchCollector#facet(SearchOperator, Iterable) * @since 4.7 */ -@Evolving +@Sealed @Beta({Beta.Reason.CLIENT, Beta.Reason.SERVER}) public interface FacetSearchCollector extends SearchCollector { } diff --git a/driver-core/src/main/com/mongodb/client/model/search/FieldSearchPath.java b/driver-core/src/main/com/mongodb/client/model/search/FieldSearchPath.java index 271deefd7fd..cc4b89f6381 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/FieldSearchPath.java +++ b/driver-core/src/main/com/mongodb/client/model/search/FieldSearchPath.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; import org.bson.conversions.Bson; import static com.mongodb.internal.client.model.Util.SEARCH_PATH_VALUE_KEY; @@ -25,7 +25,7 @@ * @see SearchPath#fieldPath(String) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface FieldSearchPath extends SearchPath { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/FilterCompoundSearchOperator.java b/driver-core/src/main/com/mongodb/client/model/search/FilterCompoundSearchOperator.java index 278df628107..92b414ebbc8 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/FilterCompoundSearchOperator.java +++ b/driver-core/src/main/com/mongodb/client/model/search/FilterCompoundSearchOperator.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * A representation of a {@link CompoundSearchOperator} that allows changing @@ -26,7 +26,7 @@ * @see CompoundSearchOperatorBase#filter(Iterable) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface FilterCompoundSearchOperator extends CompoundSearchOperator { @Override diff --git a/driver-core/src/main/com/mongodb/client/model/search/FunctionSearchScore.java b/driver-core/src/main/com/mongodb/client/model/search/FunctionSearchScore.java index e7921256280..047cf65b2e4 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/FunctionSearchScore.java +++ b/driver-core/src/main/com/mongodb/client/model/search/FunctionSearchScore.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchScore#function(SearchScoreExpression) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface FunctionSearchScore extends SearchScore { } diff --git a/driver-core/src/main/com/mongodb/client/model/search/FuzzySearchOptions.java b/driver-core/src/main/com/mongodb/client/model/search/FuzzySearchOptions.java index fce88413502..7afe5fc1c8a 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/FuzzySearchOptions.java +++ b/driver-core/src/main/com/mongodb/client/model/search/FuzzySearchOptions.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; import org.bson.conversions.Bson; /** @@ -26,7 +26,7 @@ * @mongodb.atlas.manual atlas-search/text/ text operator * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface FuzzySearchOptions extends Bson { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/GaussSearchScoreExpression.java b/driver-core/src/main/com/mongodb/client/model/search/GaussSearchScoreExpression.java index be5cd776bf3..038d5973d78 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/GaussSearchScoreExpression.java +++ b/driver-core/src/main/com/mongodb/client/model/search/GaussSearchScoreExpression.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchScoreExpression#gaussExpression(double, PathSearchScoreExpression, double) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface GaussSearchScoreExpression extends SearchScoreExpression { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/GeoNearSearchOperator.java b/driver-core/src/main/com/mongodb/client/model/search/GeoNearSearchOperator.java index 76c84acc583..5c02fce3030 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/GeoNearSearchOperator.java +++ b/driver-core/src/main/com/mongodb/client/model/search/GeoNearSearchOperator.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; import com.mongodb.client.model.geojson.Point; /** @@ -24,7 +24,7 @@ * @see SearchOperator#near(Point, Number, Iterable) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface GeoNearSearchOperator extends SearchOperator { @Override diff --git a/driver-core/src/main/com/mongodb/client/model/search/Log1pSearchScoreExpression.java b/driver-core/src/main/com/mongodb/client/model/search/Log1pSearchScoreExpression.java index b135a1f14d1..f1499a5de16 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/Log1pSearchScoreExpression.java +++ b/driver-core/src/main/com/mongodb/client/model/search/Log1pSearchScoreExpression.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchScoreExpression#log1pExpression(SearchScoreExpression) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface Log1pSearchScoreExpression extends SearchScoreExpression { } diff --git a/driver-core/src/main/com/mongodb/client/model/search/LogSearchScoreExpression.java b/driver-core/src/main/com/mongodb/client/model/search/LogSearchScoreExpression.java index 0372b25c325..10ad3b9d40d 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/LogSearchScoreExpression.java +++ b/driver-core/src/main/com/mongodb/client/model/search/LogSearchScoreExpression.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchScoreExpression#logExpression(SearchScoreExpression) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface LogSearchScoreExpression extends SearchScoreExpression { } diff --git a/driver-core/src/main/com/mongodb/client/model/search/LowerBoundSearchCount.java b/driver-core/src/main/com/mongodb/client/model/search/LowerBoundSearchCount.java index fb6514d1bf5..888d66d50b0 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/LowerBoundSearchCount.java +++ b/driver-core/src/main/com/mongodb/client/model/search/LowerBoundSearchCount.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchCount#lowerBound() * @since 4.7 */ -@Evolving +@Sealed @Beta({Beta.Reason.CLIENT, Beta.Reason.SERVER}) public interface LowerBoundSearchCount extends SearchCount { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/MultiplySearchScoreExpression.java b/driver-core/src/main/com/mongodb/client/model/search/MultiplySearchScoreExpression.java index 170758e5bae..31d330ba161 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/MultiplySearchScoreExpression.java +++ b/driver-core/src/main/com/mongodb/client/model/search/MultiplySearchScoreExpression.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchScoreExpression#multiplyExpression(Iterable) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface MultiplySearchScoreExpression extends SearchScoreExpression { } diff --git a/driver-core/src/main/com/mongodb/client/model/search/MustCompoundSearchOperator.java b/driver-core/src/main/com/mongodb/client/model/search/MustCompoundSearchOperator.java index 0973aeeb02c..e9715a9b076 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/MustCompoundSearchOperator.java +++ b/driver-core/src/main/com/mongodb/client/model/search/MustCompoundSearchOperator.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * A representation of a {@link CompoundSearchOperator} that allows changing @@ -26,7 +26,7 @@ * @see CompoundSearchOperatorBase#must(Iterable) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface MustCompoundSearchOperator extends CompoundSearchOperator { @Override diff --git a/driver-core/src/main/com/mongodb/client/model/search/MustNotCompoundSearchOperator.java b/driver-core/src/main/com/mongodb/client/model/search/MustNotCompoundSearchOperator.java index e6d4eaa4683..aad0bb633cc 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/MustNotCompoundSearchOperator.java +++ b/driver-core/src/main/com/mongodb/client/model/search/MustNotCompoundSearchOperator.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * A representation of a {@link CompoundSearchOperator} that allows changing @@ -26,7 +26,7 @@ * @see CompoundSearchOperatorBase#mustNot(Iterable) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface MustNotCompoundSearchOperator extends CompoundSearchOperator { @Override diff --git a/driver-core/src/main/com/mongodb/client/model/search/NumberNearSearchOperator.java b/driver-core/src/main/com/mongodb/client/model/search/NumberNearSearchOperator.java index bcc902710df..1baf5f2303f 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/NumberNearSearchOperator.java +++ b/driver-core/src/main/com/mongodb/client/model/search/NumberNearSearchOperator.java @@ -16,14 +16,14 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchOperator#near(Number, Number, FieldSearchPath, FieldSearchPath...) * @see SearchOperator#near(Number, Number, Iterable) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface NumberNearSearchOperator extends SearchOperator { @Override diff --git a/driver-core/src/main/com/mongodb/client/model/search/NumberRangeSearchOperator.java b/driver-core/src/main/com/mongodb/client/model/search/NumberRangeSearchOperator.java index 4ef1c418a43..e0acad425c6 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/NumberRangeSearchOperator.java +++ b/driver-core/src/main/com/mongodb/client/model/search/NumberRangeSearchOperator.java @@ -16,14 +16,14 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchOperator#numberRange(FieldSearchPath, FieldSearchPath...) * @see SearchOperator#numberRange(Iterable) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface NumberRangeSearchOperator extends NumberRangeSearchOperatorBase, SearchOperator { @Override diff --git a/driver-core/src/main/com/mongodb/client/model/search/NumberRangeSearchOperatorBase.java b/driver-core/src/main/com/mongodb/client/model/search/NumberRangeSearchOperatorBase.java index 1bc3466a19a..2492f1db11c 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/NumberRangeSearchOperatorBase.java +++ b/driver-core/src/main/com/mongodb/client/model/search/NumberRangeSearchOperatorBase.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * A base for a {@link NumberRangeSearchOperator} which allows creating instances of this operator. @@ -26,7 +26,7 @@ * @see SearchOperator#numberRange(Iterable) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface NumberRangeSearchOperatorBase { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/NumberSearchFacet.java b/driver-core/src/main/com/mongodb/client/model/search/NumberSearchFacet.java index cd8c05e5e54..4fc6bc27d21 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/NumberSearchFacet.java +++ b/driver-core/src/main/com/mongodb/client/model/search/NumberSearchFacet.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchFacet#numberFacet(String, FieldSearchPath, Iterable) * @since 4.7 */ -@Evolving +@Sealed @Beta({Beta.Reason.CLIENT, Beta.Reason.SERVER}) public interface NumberSearchFacet extends SearchFacet { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/PathBoostSearchScore.java b/driver-core/src/main/com/mongodb/client/model/search/PathBoostSearchScore.java index d010f65ce3e..37c675e523b 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/PathBoostSearchScore.java +++ b/driver-core/src/main/com/mongodb/client/model/search/PathBoostSearchScore.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchScore#boost(FieldSearchPath) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface PathBoostSearchScore extends SearchScore { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/PathSearchScoreExpression.java b/driver-core/src/main/com/mongodb/client/model/search/PathSearchScoreExpression.java index cfb78ae3ec5..a144addae89 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/PathSearchScoreExpression.java +++ b/driver-core/src/main/com/mongodb/client/model/search/PathSearchScoreExpression.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchScoreExpression#pathExpression(FieldSearchPath) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface PathSearchScoreExpression extends SearchScoreExpression { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/RelevanceSearchScoreExpression.java b/driver-core/src/main/com/mongodb/client/model/search/RelevanceSearchScoreExpression.java index 948bbd62f63..89491f5c935 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/RelevanceSearchScoreExpression.java +++ b/driver-core/src/main/com/mongodb/client/model/search/RelevanceSearchScoreExpression.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchScoreExpression#relevanceExpression() * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface RelevanceSearchScoreExpression extends SearchScoreExpression { } diff --git a/driver-core/src/main/com/mongodb/client/model/search/SearchCollector.java b/driver-core/src/main/com/mongodb/client/model/search/SearchCollector.java index e295c05803d..a93c5690699 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/SearchCollector.java +++ b/driver-core/src/main/com/mongodb/client/model/search/SearchCollector.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; import com.mongodb.client.model.Aggregates; import com.mongodb.client.model.Projections; import org.bson.Document; @@ -33,7 +33,7 @@ * @mongodb.atlas.manual atlas-search/operators-and-collectors/#collectors Search collectors * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface SearchCollector extends Bson { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/SearchCount.java b/driver-core/src/main/com/mongodb/client/model/search/SearchCount.java index 928a4d6b207..bb80a894f95 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/SearchCount.java +++ b/driver-core/src/main/com/mongodb/client/model/search/SearchCount.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; import com.mongodb.client.model.Projections; import org.bson.BsonDocument; import org.bson.BsonString; @@ -32,7 +32,7 @@ * @mongodb.atlas.manual atlas-search/counting/ Counting * @since 4.7 */ -@Evolving +@Sealed @Beta({Beta.Reason.CLIENT, Beta.Reason.SERVER}) public interface SearchCount extends Bson { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/SearchFacet.java b/driver-core/src/main/com/mongodb/client/model/search/SearchFacet.java index aeef5250e13..fcc4e2866b8 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/SearchFacet.java +++ b/driver-core/src/main/com/mongodb/client/model/search/SearchFacet.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; import org.bson.BsonDocument; import org.bson.BsonType; import org.bson.BsonValue; @@ -42,7 +42,7 @@ * @mongodb.atlas.manual atlas-search/facet/#facet-definition Facet definition * @since 4.7 */ -@Evolving +@Sealed @Beta({Beta.Reason.CLIENT, Beta.Reason.SERVER}) public interface SearchFacet extends Bson { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/SearchHighlight.java b/driver-core/src/main/com/mongodb/client/model/search/SearchHighlight.java index c30c68faa72..c337be57e5b 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/SearchHighlight.java +++ b/driver-core/src/main/com/mongodb/client/model/search/SearchHighlight.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; import com.mongodb.client.model.Projections; import org.bson.BsonDocument; import org.bson.conversions.Bson; @@ -36,7 +36,7 @@ * @mongodb.atlas.manual atlas-search/highlighting/ Highlighting * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface SearchHighlight extends Bson { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/SearchOperator.java b/driver-core/src/main/com/mongodb/client/model/search/SearchOperator.java index 73c4f55f5f2..e9fd4796234 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/SearchOperator.java +++ b/driver-core/src/main/com/mongodb/client/model/search/SearchOperator.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; import com.mongodb.client.model.Aggregates; import com.mongodb.client.model.geojson.Point; import org.bson.BsonType; @@ -39,7 +39,7 @@ * @mongodb.atlas.manual atlas-search/operators-and-collectors/#operators Search operators * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface SearchOperator extends Bson { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/SearchOptions.java b/driver-core/src/main/com/mongodb/client/model/search/SearchOptions.java index 190cbed87f0..8550c672ee5 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/SearchOptions.java +++ b/driver-core/src/main/com/mongodb/client/model/search/SearchOptions.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; import com.mongodb.client.model.Aggregates; import org.bson.conversions.Bson; @@ -28,7 +28,7 @@ * @mongodb.atlas.manual atlas-search/query-syntax/#-search $search syntax * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface SearchOptions extends Bson { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/SearchPath.java b/driver-core/src/main/com/mongodb/client/model/search/SearchPath.java index e195de7187f..c620c2995f0 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/SearchPath.java +++ b/driver-core/src/main/com/mongodb/client/model/search/SearchPath.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; import com.mongodb.internal.client.model.Util; import org.bson.BsonDocument; import org.bson.BsonString; @@ -36,7 +36,7 @@ * @mongodb.atlas.manual atlas-search/path-construction/ Path * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface SearchPath extends Bson { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/SearchScore.java b/driver-core/src/main/com/mongodb/client/model/search/SearchScore.java index 2cd845d08c7..7c241e8ec06 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/SearchScore.java +++ b/driver-core/src/main/com/mongodb/client/model/search/SearchScore.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; import com.mongodb.client.model.Projections; import org.bson.BsonDocument; import org.bson.BsonDouble; @@ -33,7 +33,7 @@ * @mongodb.atlas.manual atlas-search/scoring/ Scoring * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface SearchScore extends Bson { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/SearchScoreExpression.java b/driver-core/src/main/com/mongodb/client/model/search/SearchScoreExpression.java index 99da9825f17..442b361d813 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/SearchScoreExpression.java +++ b/driver-core/src/main/com/mongodb/client/model/search/SearchScoreExpression.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; import org.bson.BsonDocument; import org.bson.BsonDouble; import org.bson.BsonString; @@ -35,7 +35,7 @@ * @mongodb.atlas.manual atlas-search/scoring/#expressions Expressions for the function score modifier * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface SearchScoreExpression extends Bson { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/ShouldCompoundSearchOperator.java b/driver-core/src/main/com/mongodb/client/model/search/ShouldCompoundSearchOperator.java index 121961b5ad6..388a08bcb03 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/ShouldCompoundSearchOperator.java +++ b/driver-core/src/main/com/mongodb/client/model/search/ShouldCompoundSearchOperator.java @@ -16,7 +16,7 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * A representation of a {@link CompoundSearchOperator} that allows changing @@ -26,7 +26,7 @@ * @see CompoundSearchOperatorBase#should(Iterable) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface ShouldCompoundSearchOperator extends CompoundSearchOperator { @Override diff --git a/driver-core/src/main/com/mongodb/client/model/search/StringSearchFacet.java b/driver-core/src/main/com/mongodb/client/model/search/StringSearchFacet.java index 175d2a0d71c..523d20bfe98 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/StringSearchFacet.java +++ b/driver-core/src/main/com/mongodb/client/model/search/StringSearchFacet.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchFacet#stringFacet(String, FieldSearchPath) * @since 4.7 */ -@Evolving +@Sealed @Beta({Beta.Reason.CLIENT, Beta.Reason.SERVER}) public interface StringSearchFacet extends SearchFacet { /** diff --git a/driver-core/src/main/com/mongodb/client/model/search/TextSearchOperator.java b/driver-core/src/main/com/mongodb/client/model/search/TextSearchOperator.java index 74ded6ae6be..71d1206d2d7 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/TextSearchOperator.java +++ b/driver-core/src/main/com/mongodb/client/model/search/TextSearchOperator.java @@ -16,14 +16,14 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchOperator#text(SearchPath, String) * @see SearchOperator#text(Iterable, Iterable) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface TextSearchOperator extends SearchOperator { @Override diff --git a/driver-core/src/main/com/mongodb/client/model/search/TotalSearchCount.java b/driver-core/src/main/com/mongodb/client/model/search/TotalSearchCount.java index 873ad93bed2..5df56e6bbbd 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/TotalSearchCount.java +++ b/driver-core/src/main/com/mongodb/client/model/search/TotalSearchCount.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchCount#total() * @since 4.7 */ -@Evolving +@Sealed @Beta({Beta.Reason.CLIENT, Beta.Reason.SERVER}) public interface TotalSearchCount extends SearchCount { } diff --git a/driver-core/src/main/com/mongodb/client/model/search/ValueBoostSearchScore.java b/driver-core/src/main/com/mongodb/client/model/search/ValueBoostSearchScore.java index 684aa9d23a6..5b180b7c14f 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/ValueBoostSearchScore.java +++ b/driver-core/src/main/com/mongodb/client/model/search/ValueBoostSearchScore.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchScore#boost(float) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface ValueBoostSearchScore extends SearchScore { } diff --git a/driver-core/src/main/com/mongodb/client/model/search/WildcardSearchPath.java b/driver-core/src/main/com/mongodb/client/model/search/WildcardSearchPath.java index fd10414d021..9fb66644fbd 100644 --- a/driver-core/src/main/com/mongodb/client/model/search/WildcardSearchPath.java +++ b/driver-core/src/main/com/mongodb/client/model/search/WildcardSearchPath.java @@ -16,13 +16,13 @@ package com.mongodb.client.model.search; import com.mongodb.annotations.Beta; -import com.mongodb.annotations.Evolving; +import com.mongodb.annotations.Sealed; /** * @see SearchPath#wildcardPath(String) * @since 4.7 */ -@Evolving +@Sealed @Beta(Beta.Reason.CLIENT) public interface WildcardSearchPath extends SearchPath { } diff --git a/driver-scala/src/main/scala/org/mongodb/scala/model/search/package.scala b/driver-scala/src/main/scala/org/mongodb/scala/model/search/package.scala index 6d350321652..103f6445e74 100644 --- a/driver-scala/src/main/scala/org/mongodb/scala/model/search/package.scala +++ b/driver-scala/src/main/scala/org/mongodb/scala/model/search/package.scala @@ -15,7 +15,7 @@ */ package org.mongodb.scala.model -import com.mongodb.annotations.{ Beta, Evolving } +import com.mongodb.annotations.{ Beta, Sealed } /** * Query building API for MongoDB Atlas full-text search. @@ -38,7 +38,7 @@ package object search { * * @see [[https://www.mongodb.com/docs/atlas/atlas-search/operators-and-collectors/#operators Search operators]] */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type SearchOperator = com.mongodb.client.model.search.SearchOperator @@ -48,14 +48,14 @@ package object search { * * @see `SearchOperator.compound()` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type CompoundSearchOperatorBase = com.mongodb.client.model.search.CompoundSearchOperatorBase /** * @see `SearchOperator.compound()` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type CompoundSearchOperator = com.mongodb.client.model.search.CompoundSearchOperator @@ -66,7 +66,7 @@ package object search { * * @see `CompoundSearchOperatorBase.must(Iterable)` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type MustCompoundSearchOperator = com.mongodb.client.model.search.MustCompoundSearchOperator @@ -77,7 +77,7 @@ package object search { * * @see `CompoundSearchOperatorBase.mustNot(Iterable)` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type MustNotCompoundSearchOperator = com.mongodb.client.model.search.MustNotCompoundSearchOperator @@ -88,7 +88,7 @@ package object search { * * @see `CompoundSearchOperatorBase.should(Iterable)` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type ShouldCompoundSearchOperator = com.mongodb.client.model.search.ShouldCompoundSearchOperator @@ -99,14 +99,14 @@ package object search { * * @see `CompoundSearchOperatorBase.filter(Iterable)` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type FilterCompoundSearchOperator = com.mongodb.client.model.search.FilterCompoundSearchOperator /** * @see `SearchOperator.exists(FieldSearchPath)` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type ExistsSearchOperator = com.mongodb.client.model.search.ExistsSearchOperator @@ -114,7 +114,7 @@ package object search { * @see `SearchOperator.text(String, SearchPath)` * @see `SearchOperator.text(Iterable, Iterable)` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type TextSearchOperator = com.mongodb.client.model.search.TextSearchOperator @@ -122,7 +122,7 @@ package object search { * @see `SearchOperator.autocomplete(String, FieldSearchPath)` * @see `SearchOperator.autocomplete(Iterable, FieldSearchPath)` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type AutocompleteSearchOperator = com.mongodb.client.model.search.AutocompleteSearchOperator @@ -132,7 +132,7 @@ package object search { * * @see `SearchOperator.numberRange` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type NumberRangeSearchOperatorBase = com.mongodb.client.model.search.NumberRangeSearchOperatorBase @@ -142,42 +142,42 @@ package object search { * * @see `SearchOperator.dateRange` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type DateRangeSearchOperatorBase = com.mongodb.client.model.search.DateRangeSearchOperatorBase /** * @see `SearchOperator.numberRange` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type NumberRangeSearchOperator = com.mongodb.client.model.search.NumberRangeSearchOperator /** * @see `SearchOperator.dateRange` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type DateRangeSearchOperator = com.mongodb.client.model.search.DateRangeSearchOperator /** * @see `SearchOperator.near` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type NumberNearSearchOperator = com.mongodb.client.model.search.NumberNearSearchOperator /** * @see `SearchOperator.near` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type DateNearSearchOperator = com.mongodb.client.model.search.DateNearSearchOperator /** * @see `SearchOperator.near` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type GeoNearSearchOperator = com.mongodb.client.model.search.GeoNearSearchOperator @@ -187,7 +187,7 @@ package object search { * @see [[https://www.mongodb.com/docs/atlas/atlas-search/autocomplete/ autocomplete operator]] * @see [[https://www.mongodb.com/docs/atlas/atlas-search/text/ text operator]] */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type FuzzySearchOptions = com.mongodb.client.model.search.FuzzySearchOptions @@ -198,14 +198,14 @@ package object search { * * @see [[https://www.mongodb.com/docs/atlas/atlas-search/operators-and-collectors/#collectors Search collectors]] */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type SearchCollector = com.mongodb.client.model.search.SearchCollector /** * @see `SearchCollector.facet(SearchOperator, Iterable)` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT, Beta.Reason.SERVER)) type FacetSearchCollector = com.mongodb.client.model.search.FacetSearchCollector @@ -214,7 +214,7 @@ package object search { * * @see [[https://www.mongodb.com/docs/atlas/atlas-search/query-syntax/#-search \$search syntax]] */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type SearchOptions = com.mongodb.client.model.search.SearchOptions @@ -225,7 +225,7 @@ package object search { * * @see [[https://www.mongodb.com/docs/atlas/atlas-search/highlighting/ Highlighting]] */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type SearchHighlight = com.mongodb.client.model.search.SearchHighlight @@ -237,21 +237,21 @@ package object search { * * @see [[https://www.mongodb.com/docs/atlas/atlas-search/counting/ Counting]] */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT, Beta.Reason.SERVER)) type SearchCount = com.mongodb.client.model.search.SearchCount /** * @see `SearchCount.total()` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT, Beta.Reason.SERVER)) type TotalSearchCount = com.mongodb.client.model.search.TotalSearchCount /** * @see `SearchCount.lowerBound()` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT, Beta.Reason.SERVER)) type LowerBoundSearchCount = com.mongodb.client.model.search.LowerBoundSearchCount @@ -260,28 +260,28 @@ package object search { * * @see [[https://www.mongodb.com/docs/atlas/atlas-search/facet/#facet-definition Facet definition]] */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT, Beta.Reason.SERVER)) type SearchFacet = com.mongodb.client.model.search.SearchFacet /** * @see `SearchFacet.stringFacet(String, FieldSearchPath)` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT, Beta.Reason.SERVER)) type StringSearchFacet = com.mongodb.client.model.search.StringSearchFacet /** * @see `SearchFacet.numberFacet(String, FieldSearchPath, Iterable)` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT, Beta.Reason.SERVER)) type NumberSearchFacet = com.mongodb.client.model.search.NumberSearchFacet /** * @see `SearchFacet.dateFacet(String, FieldSearchPath, Iterable)` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT, Beta.Reason.SERVER)) type DateSearchFacet = com.mongodb.client.model.search.DateSearchFacet @@ -293,21 +293,21 @@ package object search { * * @see [[https://www.mongodb.com/docs/atlas/atlas-search/path-construction/ Path]] */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type SearchPath = com.mongodb.client.model.search.SearchPath /** * @see `SearchPath.fieldPath(String)` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type FieldSearchPath = com.mongodb.client.model.search.FieldSearchPath /** * @see `SearchPath.wildcardPath(String)` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type WildcardSearchPath = com.mongodb.client.model.search.WildcardSearchPath @@ -318,35 +318,35 @@ package object search { * * @see [[https://www.mongodb.com/docs/atlas/atlas-search/scoring/ Scoring]] */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type SearchScore = com.mongodb.client.model.search.SearchScore /** * @see `SearchScore.boost(float)` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type ValueBoostSearchScore = com.mongodb.client.model.search.ValueBoostSearchScore /** * @see `SearchScore.boost(FieldSearchPath)` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type PathBoostSearchScore = com.mongodb.client.model.search.PathBoostSearchScore /** * @see `SearchScore.constant` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type ConstantSearchScore = com.mongodb.client.model.search.ConstantSearchScore /** * @see `SearchScore.function` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type FunctionSearchScore = com.mongodb.client.model.search.FunctionSearchScore @@ -354,63 +354,63 @@ package object search { * @see `SearchScore.function` * @see [[https://www.mongodb.com/docs/atlas/atlas-search/scoring/#expressions Expressions for the function score modifier]] */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type SearchScoreExpression = com.mongodb.client.model.search.SearchScoreExpression /** * @see `SearchScoreExpression.relevanceExpression` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type RelevanceSearchScoreExpression = com.mongodb.client.model.search.RelevanceSearchScoreExpression /** * @see `SearchScoreExpression.pathExpression` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type PathSearchScoreExpression = com.mongodb.client.model.search.PathSearchScoreExpression /** * @see `SearchScoreExpression.constantExpression` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type ConstantSearchScoreExpression = com.mongodb.client.model.search.ConstantSearchScoreExpression /** * @see `SearchScoreExpression.gaussExpression` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type GaussSearchScoreExpression = com.mongodb.client.model.search.GaussSearchScoreExpression /** * @see `SearchScoreExpression.log` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type LogSearchScoreExpression = com.mongodb.client.model.search.LogSearchScoreExpression /** * @see `SearchScoreExpression.log1p` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type Log1pSearchScoreExpression = com.mongodb.client.model.search.Log1pSearchScoreExpression /** * @see `SearchScoreExpression.addExpression` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type AddSearchScoreExpression = com.mongodb.client.model.search.AddSearchScoreExpression /** * @see `SearchScoreExpression.multiplyExpression` */ - @Evolving + @Sealed @Beta(Array(Beta.Reason.CLIENT)) type MultiplySearchScoreExpression = com.mongodb.client.model.search.MultiplySearchScoreExpression }