Class: Couchbase::Cluster::QueryMetaData

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/query_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|self| ... } ⇒ QueryMetaData

Returns a new instance of QueryMetaData.

Yield Parameters:



68
69
70
# File 'lib/couchbase/query_options.rb', line 68

def initialize
  yield self if block_given?
end

Instance Attribute Details

#client_context_idString

Returns the client context identifier string set of the query request

Returns:

  • (String)

    returns the client context identifier string set of the query request



50
51
52
# File 'lib/couchbase/query_options.rb', line 50

def client_context_id
  @client_context_id
end

#metricsQueryMetrics

Returns metrics as returned by the query engine, if enabled.

Returns:

  • (QueryMetrics)

    metrics as returned by the query engine, if enabled



62
63
64
# File 'lib/couchbase/query_options.rb', line 62

def metrics
  @metrics
end

#profileHash

Returns the profiling information returned by the query engine which is then decoded as JSON object

Returns:

  • (Hash)

    returns the profiling information returned by the query engine which is then decoded as JSON object



59
60
61
# File 'lib/couchbase/query_options.rb', line 59

def profile
  @profile
end

#request_idString

Returns the request identifier string of the query request

Returns:

  • (String)

    returns the request identifier string of the query request



47
48
49
# File 'lib/couchbase/query_options.rb', line 47

def request_id
  @request_id
end

#signatureHash

Returns the signature as returned by the query engine which is then decoded as JSON object

Returns:

  • (Hash)

    returns the signature as returned by the query engine which is then decoded as JSON object



56
57
58
# File 'lib/couchbase/query_options.rb', line 56

def signature
  @signature
end

#statusSymbol

Returns raw query execution status as returned by the query engine

Returns:

  • (Symbol)

    returns raw query execution status as returned by the query engine



53
54
55
# File 'lib/couchbase/query_options.rb', line 53

def status
  @status
end

#warningsArray<QueryWarning>

Returns list of warnings returned by the query engine.

Returns:

  • (Array<QueryWarning>)

    list of warnings returned by the query engine



65
66
67
# File 'lib/couchbase/query_options.rb', line 65

def warnings
  @warnings
end