Package com.couchbase.client.java.query
Class QueryMetaData
java.lang.Object
com.couchbase.client.java.query.QueryMetaData
public class QueryMetaData 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
Modifier and Type Method Description String
clientContextId()
Returns the client context identifier string set on the query request.Optional<QueryMetrics>
metrics()
Returns theQueryMetrics
as returned by the query engine if enabled.Optional<JsonObject>
profile()
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()
List<QueryWarning>
warnings()
Returns any warnings returned by the query engine, as aJsonArray
.
-
Method Details
-
requestId
Returns the request identifier string of the query request -
clientContextId
Returns the client context identifier string set on the query request. -
status
Returns the raw query execution status as returned by the query engine -
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:
DecodingFailureException
- when the signature cannot be decoded successfully
-
profile
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:
DecodingFailureException
- when the profile cannot be decoded successfully
-
metrics
Returns theQueryMetrics
as returned by the query engine if enabled.- Throws:
DecodingFailureException
- when the metrics cannot be decoded successfully
-
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:
DecodingFailureException
- when the warnings cannot be decoded successfully
-
toString
-