Package com.couchbase.client.java.query
Class ReactiveQueryResult
java.lang.Object
com.couchbase.client.java.query.ReactiveQueryResult
Reactive result that fetch parts of the N1ql Query responses reactively
- Since:
- 3.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionReactiveQueryResult(CoreReactiveQueryResult internal, JsonSerializer serializer) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<QueryMetaData> metaData()Returns aMonocontaining aQueryMetaData, giving access to the additional metadata associated with this query.<T> reactor.core.publisher.Flux<T> Get aFluxwhich publishes the rows that were fetched by the query which are then decoded to the requested entity type<T> reactor.core.publisher.Flux<T> Get aFluxwhich publishes the rows that were fetched by the query which are then decoded to the requested entity classreactor.core.publisher.Flux<JsonObject> Get aFluxwhich publishes the rows that were fetched by the query which are then decoded toJsonObject
-
Constructor Details
-
ReactiveQueryResult
-
-
Method Details
-
rowsAsObject
Get aFluxwhich publishes the rows that were fetched by the query which are then decoded toJsonObject- Returns:
Flux
-
rowsAs
Get aFluxwhich publishes the rows that were fetched by the query which are then decoded to the requested entity class- Parameters:
target- target class for converting the query row- Returns:
Flux- Throws:
DecodingFailureException- (async) if the decoding cannot be completed successfully
-
rowsAs
Get aFluxwhich publishes the rows that were fetched by the query which are then decoded to the requested entity type- Parameters:
target- target type for converting the query row- Returns:
Flux- Throws:
DecodingFailureException- (async) if the decoding cannot be completed successfully
-
metaData
Returns aMonocontaining aQueryMetaData, giving access to the additional metadata associated with this query. Note that the metadata will only be available once all rows have been received, so it is recommended that you first handle the rows in your code, and then the metadata. This will avoid buffering all the rows in-memory.
-