public class QueryMetaData extends Object
Modifier and Type | Method and Description |
---|---|
String |
clientContextId()
Returns the client context identifier string set on the query request.
|
Optional<QueryMetrics> |
metrics()
Returns the
QueryMetrics as returned by the query engine if enabled. |
Optional<JsonObject> |
profile()
Returns the profiling information returned by the query engine which is then decoded to
JsonObject |
String |
requestId()
Returns the request identifier string of the query request
|
Optional<JsonObject> |
signature()
Returns the signature as returned by the query engine which is then decoded to
JsonObject |
QueryStatus |
status()
Returns the raw query execution status as returned by the query engine
|
String |
toString() |
List<QueryWarning> |
warnings()
Returns any warnings returned by the query engine, as a
JsonArray . |
public String requestId()
public String clientContextId()
public QueryStatus status()
public Optional<JsonObject> signature()
JsonObject
It is returned as an Optional which will be empty if no signature information is available.
DecodingFailureException
- when the signature cannot be decoded successfullypublic Optional<JsonObject> profile()
JsonObject
It is returned as an Optional which will be empty if no profile information is available.
DecodingFailureException
- when the profile cannot be decoded successfullypublic Optional<QueryMetrics> metrics()
QueryMetrics
as returned by the query engine if enabled.DecodingFailureException
- when the metrics cannot be decoded successfullypublic List<QueryWarning> warnings()
JsonArray
.
It is returned as an Optional which will be empty if no warnings were returned
DecodingFailureException
- when the warnings cannot be decoded successfullyCopyright © 2021 Couchbase, Inc.. All rights reserved.