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
34
34
* @param T The type of the result.
35
35
* @see [Aggregation command](https://www.mongodb.com/docs/manual/reference/command/aggregate)
36
36
*/
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() {
38
38
39
39
/* *
40
40
* 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
30
30
* @param T The type of the result.
31
31
* @see [Distinct command](https://www.mongodb.com/docs/manual/reference/command/distinct/)
32
32
*/
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() {
34
34
35
35
/* *
36
36
* 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
34
34
* @param T The type of the result.
35
35
* @see [Collection filter](https://www.mongodb.com/docs/manual/reference/method/db.collection.find/)
36
36
*/
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() {
38
38
39
39
/* *
40
40
* 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
29
29
* @param T The type of the result.
30
30
* @see [List collections](https://www.mongodb.com/docs/manual/reference/command/listCollections/)
31
31
*/
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() {
33
34
/* *
34
35
* Sets the maximum execution time on the server for this operation.
35
36
*
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ import org.bson.conversions.Bson
29
29
* @param T The type of the result.
30
30
* @see [List databases](https://www.mongodb.com/docs/manual/reference/command/listDatabases/)
31
31
*/
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() {
33
33
/* *
34
34
* Sets the maximum execution time on the server for this operation.
35
35
*
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import org.bson.BsonValue
28
28
* @param T The type of the result.
29
29
* @see [List indexes](https://www.mongodb.com/docs/manual/reference/command/listIndexes/)
30
30
*/
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() {
32
32
/* *
33
33
* Sets the maximum execution time on the server for this operation.
34
34
*
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ import org.bson.conversions.Bson
36
36
* @see [Map Reduce](https://www.mongodb.com/docs/manual/reference/command/mapReduce/)
37
37
*/
38
38
@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() {
40
40
/* *
41
41
* Sets the number of documents to return per batch.
42
42
*
You can’t perform that action at this time.
0 commit comments