Class: Couchbase::Management::Options::Query::BuildDeferredIndexes
- Inherits:
-
Options::Base
- Object
- Options::Base
- Couchbase::Management::Options::Query::BuildDeferredIndexes
- Defined in:
- lib/couchbase/management/query_index_manager.rb
Overview
Options for QueryIndexManager#build_deferred_indexes
Instance Attribute Summary collapse
Attributes inherited from Options::Base
#client_context, #parent_span, #retry_strategy, #timeout
Instance Method Summary collapse
-
#initialize(scope_name: nil, collection_name: nil, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ BuildDeferredIndexes
constructor
Creates an instance of options for QueryIndexManager#build_deferred_indexes.
- #to_backend ⇒ Object private
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
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_name ⇒ String?
268 269 270 |
# File 'lib/couchbase/management/query_index_manager.rb', line 268 def collection_name @collection_name end |
#scope_name ⇒ String?
267 268 269 |
# File 'lib/couchbase/management/query_index_manager.rb', line 267 def scope_name @scope_name end |
Instance Method Details
#to_backend ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
293 294 295 296 297 298 299 |
# File 'lib/couchbase/management/query_index_manager.rb', line 293 def to_backend { timeout: Utils::Time.extract_duration(@timeout), scope_name: @scope_name, collection_name: @collection_name, } end |