- java.lang.Object
-
- io.helidon.dbclient.mongodb.MongoDbRows<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<List<T>>collect()Collect all the results into a list of rows mapped to the correct type.<U> DbRows<U>map(GenericType<U> type)Map this row result using a configuredMapperthat can map current type to the desired type.<U> DbRows<U>map(Class<U> type)Map this row result using a configuredMapperthat can map current type to the desired type.<U> DbRows<U>map(Function<T,U> mapper)Map this row result using a mapping function.Flow.Publisher<T>publisher()Get this result as a publisher of rows mapped to the correct type.
-
-
-
Method Detail
-
map
public <U> DbRows<U> map(Function<T,U> mapper)
Description copied from interface:DbRowsMap this row result using a mapping function.
-
map
public <U> DbRows<U> map(Class<U> type)
Description copied from interface:DbRowsMap this row result using a configuredMapperthat can map current type to the desired type.The first mapping for row results of type
DbRowwill also try to locate appropriate mapper usingDbMapperManager.
-
map
public <U> DbRows<U> map(GenericType<U> type)
Description copied from interface:DbRowsMap this row result using a configuredMapperthat can map current type to the desired type.The first mapping for row results of type
DbRowwill also try to locate appropriate mapper usingDbMapperManager.
-
publisher
public Flow.Publisher<T> publisher()
Description copied from interface:DbRowsGet this result as a publisher of rows mapped to the correct type.
-
collect
public CompletionStage<List<T>> collect()
Description copied from interface:DbRowsCollect all the results into a list of rows mapped to the correct type.This is a dangerous operation, as it collects all results in memory. Use with care.
-
-