public class QueryMetaData extends Object
Constructor and Description |
---|
QueryMetaData(com.couchbase.client.core.api.query.CoreQueryMetaData internal) |
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 |
Optional<byte[]> |
profileBytes()
Returns a byte array containing the profiling information returned by the query engine,
or an empty optional if no profiling information is available.
|
String |
requestId()
Returns the request identifier string of the query request
|
Optional<JsonObject> |
signature()
Returns the signature returned by the query engine, parsed as a
JsonObject ,
or an empty optional if no signature is available. |
Optional<byte[]> |
signatureBytes()
Returns a byte array containing the signature returned by the query engine,
or an empty optional if no signature is available.
|
QueryStatus |
status()
Returns the raw query execution status as returned by the query engine
|
List<QueryWarning> |
warnings()
Returns any warnings returned by the query engine, as a
JsonArray . |
@Stability.Internal public QueryMetaData(com.couchbase.client.core.api.query.CoreQueryMetaData internal)
public String requestId()
public String clientContextId()
public QueryStatus status()
public Optional<JsonObject> signature()
JsonObject
,
or an empty optional if no signature is available.
A signature describes the "shape" of the query results.
For cases where the signature is not known to be a JSON Object,
please use signatureBytes()
instead.
com.couchbase.client.core.error.DecodingFailureException
- if the signature is not a JSON Object.@Stability.Uncommitted public Optional<byte[]> signatureBytes()
The byte array contains JSON describing the "shape" of the query results. For most queries it's a JSON Object, but it can be any JSON type.
public Optional<JsonObject> profile()
JsonObject
It is returned as an Optional which will be empty if no profile information is available.
com.couchbase.client.core.error.DecodingFailureException
- when the profile cannot be decoded successfullypublic Optional<byte[]> profileBytes()
The byte array contains a JSON Object.
public Optional<QueryMetrics> metrics()
QueryMetrics
as returned by the query engine if enabled.com.couchbase.client.core.error.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
com.couchbase.client.core.error.DecodingFailureException
- when the warnings cannot be decoded successfullyCopyright © 2024 Couchbase, Inc.. All rights reserved.