File tree Expand file tree Collapse file tree 7 files changed +8
-7
lines changed
driver-kotlin-coroutine/src/main/kotlin/com/mongodb/kotlin/client/coroutine Expand file tree Collapse file tree 7 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ import org.bson.conversions.Bson
3434 * @param T The type of the result.
3535 * @see [Aggregation command](https://www.mongodb.com/docs/manual/reference/command/aggregate)
3636 */
37- public class AggregateFlow <T : Any >(private val wrapped : AggregatePublisher <T >) : Flow<T> {
37+ public class AggregateFlow <T : Any >(private val wrapped : AggregatePublisher <T >) : Flow<T> by wrapped.asFlow() {
3838
3939 /* *
4040 * Sets the number of documents to return per batch.
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import org.bson.conversions.Bson
3030 * @param T The type of the result.
3131 * @see [Distinct command](https://www.mongodb.com/docs/manual/reference/command/distinct/)
3232 */
33- public class DistinctFlow <T : Any >(private val wrapped : DistinctPublisher <T >) : Flow<T> {
33+ public class DistinctFlow <T : Any >(private val wrapped : DistinctPublisher <T >) : Flow<T> by wrapped.asFlow() {
3434
3535 /* *
3636 * Sets the number of documents to return per batch.
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ import org.bson.conversions.Bson
3434 * @param T The type of the result.
3535 * @see [Collection filter](https://www.mongodb.com/docs/manual/reference/method/db.collection.find/)
3636 */
37- public class FindFlow <T : Any >(private val wrapped : FindPublisher <T >) : Flow<T> {
37+ public class FindFlow <T : Any >(private val wrapped : FindPublisher <T >) : Flow<T> by wrapped.asFlow() {
3838
3939 /* *
4040 * Sets the number of documents to return per batch.
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ import org.bson.conversions.Bson
2929 * @param T The type of the result.
3030 * @see [List collections](https://www.mongodb.com/docs/manual/reference/command/listCollections/)
3131 */
32- public class ListCollectionsFlow <T : Any >(private val wrapped : ListCollectionsPublisher <T >) : Flow<T> {
32+ public class ListCollectionsFlow <T : Any >(private val wrapped : ListCollectionsPublisher <T >) :
33+ Flow <T > by wrapped.asFlow() {
3334 /* *
3435 * Sets the maximum execution time on the server for this operation.
3536 *
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import org.bson.conversions.Bson
2929 * @param T The type of the result.
3030 * @see [List databases](https://www.mongodb.com/docs/manual/reference/command/listDatabases/)
3131 */
32- public class ListDatabasesFlow <T : Any >(private val wrapped : ListDatabasesPublisher <T >) : Flow<T> {
32+ public class ListDatabasesFlow <T : Any >(private val wrapped : ListDatabasesPublisher <T >) : Flow<T> by wrapped.asFlow() {
3333 /* *
3434 * Sets the maximum execution time on the server for this operation.
3535 *
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import org.bson.BsonValue
2828 * @param T The type of the result.
2929 * @see [List indexes](https://www.mongodb.com/docs/manual/reference/command/listIndexes/)
3030 */
31- public class ListIndexesFlow <T : Any >(private val wrapped : ListIndexesPublisher <T >) : Flow<T> {
31+ public class ListIndexesFlow <T : Any >(private val wrapped : ListIndexesPublisher <T >) : Flow<T> by wrapped.asFlow() {
3232 /* *
3333 * Sets the maximum execution time on the server for this operation.
3434 *
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ import org.bson.conversions.Bson
3636 * @see [Map Reduce](https://www.mongodb.com/docs/manual/reference/command/mapReduce/)
3737 */
3838@Deprecated(" Map Reduce has been deprecated. Use Aggregation instead" , replaceWith = ReplaceWith (" " ))
39- public class MapReduceFlow <T : Any >(private val wrapped : MapReducePublisher <T >) : Flow<T> {
39+ public class MapReduceFlow <T : Any >(private val wrapped : MapReducePublisher <T >) : Flow<T> by wrapped.asFlow() {
4040 /* *
4141 * Sets the number of documents to return per batch.
4242 *
You can’t perform that action at this time.
0 commit comments