Class: Couchbase::Management::Options::Query::BuildDeferredIndexes

Inherits:
Options::Base
  • Object
show all
Defined in:
lib/couchbase/management/query_index_manager.rb

Overview

Instance Attribute Summary collapse

Attributes inherited from Options::Base

#client_context, #parent_span, #retry_strategy, #timeout

Instance Method Summary collapse

Constructor Details

#initialize(scope_name: nil, collection_name: nil, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ BuildDeferredIndexes

Creates an instance of options for QueryIndexManager#build_deferred_indexes

Parameters:

  • scope_name (String, nil) (defaults to: nil)

    the name of the scope

  • collection_name (String, nil) (defaults to: nil)

    the name of the collection

  • timeout (Integer, #in_milliseconds, nil) (defaults to: nil)

    the time in milliseconds allowed for the operation to complete

  • retry_strategy (Proc, nil) (defaults to: nil)

    the custom retry strategy, if set

  • client_context (Hash, nil) (defaults to: nil)

    the client context data, if set

  • parent_span (Span, nil) (defaults to: nil)

    if set holds the parent span, that should be used for this request

Yield Parameters:

  • self (GetAllScopes)


280
281
282
283
284
285
286
287
288
289
290
# File 'lib/couchbase/management/query_index_manager.rb', line 280

def initialize(scope_name: nil,
               collection_name: nil,
               timeout: nil,
               retry_strategy: nil,
               client_context: nil,
               parent_span: nil)
  super(timeout: timeout, retry_strategy: retry_strategy, client_context: client_context, parent_span: parent_span)
  @scope_name = scope_name
  @collection_name = collection_name
  yield self if block_given?
end

Instance Attribute Details

#collection_nameString?

Returns:

  • (String, nil)


268
269
270
# File 'lib/couchbase/management/query_index_manager.rb', line 268

def collection_name
  @collection_name
end

#scope_nameString?

Returns:

  • (String, nil)


267
268
269
# File 'lib/couchbase/management/query_index_manager.rb', line 267

def scope_name
  @scope_name
end