Package com.couchbase.client.java.query
Class QueryMeta
- java.lang.Object
-
- com.couchbase.client.java.query.QueryMeta
-
public class QueryMeta extends Object
Stores any non-rows results related to the execution of a particular N1QL query.- Since:
- 1.0.0
- Author:
- Graham Pople
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
clientContextId()
Returns the client context identifier string set on the query request, if it's availableOptional<QueryMetrics>
metrics()
Returns theQueryMetrics
as returned by the query engineOptional<JsonObject>
profileInfo()
Returns the profiling information returned by the query engine which is then decoded toJsonObject
String
requestId()
Returns the request identifier string of the query requestOptional<JsonObject>
signature()
Returns the signature as returned by the query engine which is then decoded toJsonObject
QueryStatus
status()
Returns the raw query execution status as returned by the query engineString
toString()
Optional<JsonArray>
warnings()
Returns any warnings returned by the query engine, as aJsonArray
.
-
-
-
Method Detail
-
requestId
public String requestId()
Returns the request identifier string of the query request
-
clientContextId
public Optional<String> clientContextId()
Returns the client context identifier string set on the query request, if it's available
-
status
public QueryStatus status()
Returns the raw query execution status as returned by the query engine
-
signature
public Optional<JsonObject> signature()
Returns the signature as returned by the query engine which is then decoded toJsonObject
It is returned as an Optional which will be empty if no signature information is available.
- Throws:
DecodingFailedException
- when the signature cannot be decoded successfully
-
profileInfo
public Optional<JsonObject> profileInfo()
Returns the profiling information returned by the query engine which is then decoded toJsonObject
It is returned as an Optional which will be empty if no profile information is available.
- Throws:
DecodingFailedException
- when the profile cannot be decoded successfully
-
metrics
public Optional<QueryMetrics> metrics()
Returns theQueryMetrics
as returned by the query engineIt is returned as an Optional which will be empty if no metrics information is available.
- Throws:
DecodingFailedException
- when the metrics cannot be decoded successfully
-
warnings
public Optional<JsonArray> warnings()
Returns any warnings returned by the query engine, as aJsonArray
.It is returned as an Optional which will be empty if no warnings were returned
- Throws:
DecodingFailedException
- when the warnings cannot be decoded successfully
-
-