@@ -415,19 +415,19 @@ public final InsertOneResult insertOne(T document) {
415
415
416
416
/**
417
417
* Asynchronously inserts a single document into the collection. This method provides the same functionality as
418
- * {@link #insertOne(T document )}, but it operates asynchronously, returning a {@link CompletableFuture} that
418
+ * {@link #insertOne(Object )}, but it operates asynchronously, returning a {@link CompletableFuture} that
419
419
* will be completed with the insertion result. Utilizing this method is beneficial for non-blocking operations,
420
420
* allowing other tasks to proceed while the document insertion is being processed.
421
421
*
422
422
* <p>The asynchronous operation ensures that your application can remain responsive, making this method ideal for
423
423
* applications requiring high throughput or for operations that do not need immediate completion confirmation.</p>
424
424
*
425
425
* <p>For details on the behavior, parameters, and return type, refer to the documentation of the synchronous
426
- * {@link #insertOne(T document )} method. This method inherits all the properties and behaviors of its synchronous
426
+ * {@link #insertOne(Object )} method. This method inherits all the properties and behaviors of its synchronous
427
427
* counterpart, including error handling and the generation or requirement of the {@code _id} field.</p>
428
428
*
429
429
* @param document The document to be inserted into the collection. The specifications regarding the document
430
- * structure and the {@code _id} field are the same as described in {@link #insertOne(T document )}.
430
+ * structure and the {@code _id} field are the same as described in {@link #insertOne(Object )}.
431
431
* @return A {@link CompletableFuture} that, upon completion, contains the result of the insert operation as an
432
432
* {@link InsertOneResult}. The completion may occur with a result in case of success or with an exception
433
433
* in case of failure.
@@ -448,7 +448,7 @@ public final CompletableFuture<InsertOneResult> insertOneAsync(T document) {
448
448
}
449
449
450
450
/**
451
- * Inserts a single document into the collection in an atomic operation, similar to the {@link #insertOne(T document )}
451
+ * Inserts a single document into the collection in an atomic operation, similar to the {@link #insertOne(Object )}
452
452
* method, but with the additional capability to include vector embeddings. These embeddings are typically used for
453
453
* advanced querying capabilities, such as similarity search or machine learning models. This method ensures atomicity
454
454
* of the insertion, maintaining the integrity and consistency of the collection.
@@ -489,7 +489,7 @@ public final InsertOneResult insertOne(T document, float[] embeddings) {
489
489
490
490
/**
491
491
* Asynchronously inserts a single document into the collection with vector embeddings. This method mirrors the
492
- * functionality of {@link #insertOne(T document, float[] embeddings )}, operating asynchronously to return a
492
+ * functionality of {@link #insertOne(Object, float[])}, operating asynchronously to return a
493
493
* {@link CompletableFuture} that completes with the insertion result. It is designed for use cases where
494
494
* non-blocking operations are essential, enabling other processes to continue while the document insertion
495
495
* is executed in the background.
@@ -500,7 +500,7 @@ public final InsertOneResult insertOne(T document, float[] embeddings) {
500
500
* critical.</p>
501
501
*
502
502
* <p>For a comprehensive understanding of the behavior, parameters, including the purpose and use of vector
503
- * embeddings, refer to the synchronous {@link #insertOne(T document, float[] embeddings)} method. This
503
+ * embeddings, refer to the synchronous {@link #insertOne(Object, float[] embeddings)} method. This
504
504
* asynchronous variant adopts all the behaviors and properties of its synchronous counterpart.</p>
505
505
*
506
506
* @param document The document to be inserted, potentially without an {@code _id} field which, if omitted,
@@ -529,7 +529,7 @@ public final CompletableFuture<InsertOneResult> insertOneAsync(T document, float
529
529
530
530
/**
531
531
* Inserts a single document into the collection in an atomic operation, extending the base functionality of
532
- * the {@link #insertOne(T document )} method by adding the capability to compute and include a vector of embeddings
532
+ * the {@link #insertOne(Object )} method by adding the capability to compute and include a vector of embeddings
533
533
* directly within the document. This is achieved through a specified expression, which the service translates
534
534
* into vector embeddings. These embeddings can then be utilized for advanced database operations that leverage
535
535
* vector similarity.
@@ -572,7 +572,7 @@ public final InsertOneResult insertOne(T document, String vectorize) {
572
572
573
573
/**
574
574
* Asynchronously inserts a single document into the collection with a vectorization expression. This method
575
- * provides an asynchronous counterpart to {@link #insertOne(T document, String vectorize )}, allowing for
575
+ * provides an asynchronous counterpart to {@link #insertOne(Object, String)}, allowing for
576
576
* non-blocking operations while a document, along with its vectorization based on the provided string, is
577
577
* inserted into the collection.
578
578
* <p><i style='color: orange;'><b>Note</b> : This feature is under current development.</i></p>
@@ -584,7 +584,7 @@ public final InsertOneResult insertOne(T document, String vectorize) {
584
584
*
585
585
* <p>For detailed information on the behavior and parameters, especially the purpose and processing of the
586
586
* {@code vectorize} string, refer to the documentation of the synchronous
587
- * {@link #insertOne(T document, String vectorize )} method. This asynchronous method inherits all functionalities
587
+ * {@link #insertOne(Object, String)} method. This asynchronous method inherits all functionalities
588
588
* and behaviors from its synchronous counterpart, ensuring consistency across the API.</p>
589
589
*
590
590
* @param document The document to be inserted into the collection. The requirements and options regarding the
@@ -987,7 +987,7 @@ private Callable<InsertManyResult> getInsertManyResultCallable(List<? extends T>
987
987
*
988
988
* @param filter The {@link Filter} instance encapsulating the search criteria used to pinpoint the desired document.
989
989
* This object specifies the exact conditions that must be met for a document to be selected as a match.
990
- * @return An {@link java.util.Optional< T > } encapsulating the found document, if any, that meets the filter criteria.
990
+ * @return An {@link java.util.Optional} encapsulating the found document, if any, that meets the filter criteria.
991
991
* If no document matches the specified conditions, an empty {@link java.util.Optional} is returned, ensuring
992
992
* that retrieval operations can be performed safely without the concern of {@link java.util.NoSuchElementException}.
993
993
*/
@@ -1024,7 +1024,7 @@ public Optional<T> findOne(Filter filter) {
1024
1024
* @param filter The {@link Filter} instance containing the criteria used to identify the desired document.
1025
1025
* It specifies the conditions that a document must meet to be considered a match.
1026
1026
* @param options The {@link FindOneOptions} instance containing additional options for the find operation,
1027
- * @return An {@link Optional< T > } that contains the found document if one exists that matches
1027
+ * @return An {@link Optional} that contains the found document if one exists that matches
1028
1028
* the filter criteria. Returns an empty {@link Optional} if no matching document is found,
1029
1029
* enabling safe retrieval operations without the risk of {@link java.util.NoSuchElementException}.
1030
1030
*/
@@ -1085,7 +1085,7 @@ public CompletableFuture<Optional<T>> findOneASync(Filter filter) {
1085
1085
* It defines the conditions that a document must meet to be considered a match.
1086
1086
* @param options The {@link FindOneOptions} providing additional query configurations such as projection
1087
1087
* and sort criteria to tailor the search operation.
1088
- * @return A {@link CompletableFuture<Optional< T >> } that, upon completion, contains an {@link Optional< T > }
1088
+ * @return A {@link CompletableFuture} that, upon completion, contains an {@link Optional}
1089
1089
* with the found document if one exists matching the filter criteria. If no matching document is found,
1090
1090
* a completed future with an empty {@link Optional} is returned, facilitating safe asynchronous retrieval.
1091
1091
*
@@ -1136,7 +1136,7 @@ public Optional<T> findById(Object id) {
1136
1136
*
1137
1137
* @param id The unique identifier of the document to retrieve. This can be of any type that the database
1138
1138
* recognizes as a valid identifier format (e.g., String, Integer).
1139
- * @return A {@link CompletableFuture<Optional< T >> } that, upon completion, contains an {@link Optional< T > }
1139
+ * @return A {@link CompletableFuture} that, upon completion, contains an {@link Optional}
1140
1140
* with the document if found. If no document matches the specified identifier, a completed future
1141
1141
* with an empty {@link Optional} is returned.
1142
1142
*
0 commit comments