Skip to content

Commit

Permalink
Remove Beta annotations from MongoDB extension (hazelcast#25743)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaszGaweda authored Oct 19, 2023
1 parent 1ddd0bb commit 53406be
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import com.hazelcast.jet.pipeline.Sinks;
import com.hazelcast.jet.retry.RetryStrategies;
import com.hazelcast.jet.retry.RetryStrategy;
import com.hazelcast.spi.annotation.Beta;
import com.mongodb.TransactionOptions;
import com.mongodb.client.MongoClient;
import com.mongodb.client.model.ReplaceOptions;
Expand All @@ -54,7 +53,6 @@
*
* @param <T> type of the items the sink will accept
*/
@Beta
@SuppressWarnings({"UnusedReturnValue", "unused"})
public final class MongoSinkBuilder<T> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import com.hazelcast.function.SupplierEx;
import com.hazelcast.jet.pipeline.DataConnectionRef;
import com.hazelcast.jet.pipeline.Sink;
import com.hazelcast.spi.annotation.Beta;
import com.mongodb.client.MongoClient;
import com.mongodb.client.MongoClients;
import com.mongodb.client.MongoCollection;
Expand All @@ -32,7 +31,6 @@
*
* @since 5.3
*/
@Beta
public final class MongoSinks {

private MongoSinks() {
Expand Down Expand Up @@ -72,7 +70,6 @@ private MongoSinks() {
* @param itemClass type of document that will be saved
* @param <T> type of the items the sink accepts
*/
@Beta
public static <T> MongoSinkBuilder<T> builder(
@Nonnull Class<T> itemClass,
@Nonnull SupplierEx<MongoClient> clientSupplier
Expand Down Expand Up @@ -118,7 +115,6 @@ public static <T> MongoSinkBuilder<T> builder(
* @param <T> type of the items the sink accepts
* @since 5.3
*/
@Beta
public static <T> MongoSinkBuilder<T> builder(
@Nonnull Class<T> itemClass,
@Nonnull DataConnectionRef dataConnectionRef
Expand Down Expand Up @@ -150,7 +146,6 @@ public static <T> MongoSinkBuilder<T> builder(
* @param database database to which the documents will be put into
* @param collection collection to which the documents will be put into
*/
@Beta
public static Sink<Document> mongodb(
@Nonnull String connectionString,
@Nonnull String database,
Expand Down Expand Up @@ -186,7 +181,6 @@ public static Sink<Document> mongodb(
* @param database database to which the documents will be put into
* @param collection collection to which the documents will be put into
*/
@Beta
public static Sink<Document> mongodb(
@Nonnull DataConnectionRef dataConnectionRef,
@Nonnull String database,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import com.hazelcast.jet.pipeline.DataConnectionRef;
import com.hazelcast.jet.pipeline.Sources;
import com.hazelcast.jet.pipeline.StreamSource;
import com.hazelcast.spi.annotation.Beta;
import com.mongodb.client.MongoClient;
import com.mongodb.client.model.Aggregates;
import com.mongodb.client.model.changestream.ChangeStreamDocument;
Expand Down Expand Up @@ -56,7 +55,6 @@
* @since 5.3
*
*/
@Beta
public final class MongoSourceBuilder {

private MongoSourceBuilder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import com.hazelcast.jet.pipeline.BatchSource;
import com.hazelcast.jet.pipeline.DataConnectionRef;
import com.hazelcast.jet.pipeline.StreamSource;
import com.hazelcast.spi.annotation.Beta;
import com.mongodb.client.MongoClient;
import com.mongodb.client.MongoClients;
import org.bson.Document;
Expand Down Expand Up @@ -65,7 +64,6 @@ private MongoSources() {
* @param clientSupplier a function that creates MongoDB client.
* @return Batch Mongo source builder
*/
@Beta
@Nonnull
public static MongoSourceBuilder.Batch<Document> batch(@Nonnull SupplierEx<? extends MongoClient> clientSupplier) {
return MongoSourceBuilder.batch(clientSupplier);
Expand Down Expand Up @@ -94,7 +92,6 @@ public static MongoSourceBuilder.Batch<Document> batch(@Nonnull SupplierEx<? ext
* @param dataConnectionRef a reference to mongo data connection
* @return Batch Mongo source builder
*/
@Beta
@Nonnull
public static MongoSourceBuilder.Batch<Document> batch(@Nonnull DataConnectionRef dataConnectionRef) {
return MongoSourceBuilder.batch(dataConnectionRef);
Expand Down Expand Up @@ -133,7 +130,6 @@ public static MongoSourceBuilder.Batch<Document> batch(@Nonnull DataConnectionRe
* @param filter filter object as a {@link Document}
* @param projection projection object as a {@link Document}
*/
@Beta
@Nonnull
public static BatchSource<Document> batch(
@Nonnull String connectionString,
Expand Down Expand Up @@ -190,7 +186,6 @@ public static BatchSource<Document> batch(
* @param projection projection object as a {@link Document}
* @since 5.3
*/
@Beta
@Nonnull
public static BatchSource<Document> batch(
@Nonnull DataConnectionRef dataConnectionRef,
Expand Down Expand Up @@ -234,7 +229,6 @@ public static BatchSource<Document> batch(
* @param clientSupplier a function that creates MongoDB client.
* @return Stream Mongo source builder
*/
@Beta
@Nonnull
public static MongoSourceBuilder.Stream<Document> stream(
@Nonnull SupplierEx<? extends MongoClient> clientSupplier) {
Expand Down Expand Up @@ -283,7 +277,6 @@ public static MongoSourceBuilder.Stream<Document> stream(
* @param filter filter object as a {@link Document}
* @param projection projection object as a {@link Document}
*/
@Beta
@Nonnull
public static StreamSource<? extends Document> stream(
@Nonnull String connectionString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@
*/
package com.hazelcast.jet.mongodb;

import com.hazelcast.spi.annotation.Beta;

/**
* Defines allowed operations.
*
* @since 5.3
*/
@Beta
public enum WriteMode {
/**
* Items will be inserted to MongoDB; in case of ID clash, error will be thrown.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import com.hazelcast.dataconnection.DataConnectionBase;
import com.hazelcast.dataconnection.DataConnectionResource;
import com.hazelcast.jet.impl.util.ConcurrentMemoizingSupplier;
import com.hazelcast.spi.annotation.Beta;
import com.mongodb.ConnectionString;
import com.mongodb.MongoClientSettings;
import com.mongodb.MongoClientSettings.Builder;
Expand Down Expand Up @@ -49,7 +48,6 @@
*
* @since 5.3
*/
@Beta
public class MongoDataConnection extends DataConnectionBase {

/**
Expand Down

0 comments on commit 53406be

Please sign in to comment.