@Stability.Volatile public class ReactiveQueryResult extends Object
| Modifier and Type | Method and Description |
|---|---|
Mono<QueryMetaData> |
metaData()
Returns a
Mono containing a QueryMetaData, giving access to the additional metadata associated with
this query. |
<T> Flux<T> |
rowsAs(Class<T> target)
Get a
Flux which publishes the rows that were fetched by the query which are then decoded to the
requested entity class |
<T> Flux<T> |
rowsAs(TypeRef<T> target)
Get a
Flux which publishes the rows that were fetched by the query which are then decoded to the
requested entity type |
Flux<JsonObject> |
rowsAsObject()
Get a
Flux which publishes the rows that were fetched by the query which are then decoded to
JsonObject |
public Flux<JsonObject> rowsAsObject()
Flux which publishes the rows that were fetched by the query which are then decoded to
JsonObjectFluxpublic <T> Flux<T> rowsAs(Class<T> target)
Flux which publishes the rows that were fetched by the query which are then decoded to the
requested entity classtarget - target class for converting the query rowFluxDecodingFailureException - (async) if the decoding cannot be completed successfullypublic <T> Flux<T> rowsAs(TypeRef<T> target)
Flux which publishes the rows that were fetched by the query which are then decoded to the
requested entity typetarget - target type for converting the query rowFluxDecodingFailureException - (async) if the decoding cannot be completed successfullypublic Mono<QueryMetaData> metaData()
Mono containing a QueryMetaData, 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.Copyright © 2020 Couchbase, Inc.. All rights reserved.