Class: Couchbase::Management::Options::Query::CreateIndex
- Inherits:
-
Options::Base
- Object
- Options::Base
- Couchbase::Management::Options::Query::CreateIndex
- Defined in:
- lib/couchbase/management/query_index_manager.rb
Overview
Options for QueryIndexManager#create_index
Instance Attribute Summary collapse
- #collection_name ⇒ String?
- #condition ⇒ String?
- #deferred ⇒ Boolean
- #ignore_if_exists ⇒ Boolean
- #num_replicas ⇒ Integer?
- #scope_name ⇒ String?
Attributes inherited from Options::Base
#client_context, #parent_span, #retry_strategy, #timeout
Instance Method Summary collapse
-
#initialize(ignore_if_exists: false, num_replicas: nil, deferred: false, condition: nil, scope_name: nil, collection_name: nil, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ CreateIndex
constructor
Creates an instance of options for QueryIndexManager#create_index.
Constructor Details
#initialize(ignore_if_exists: false, num_replicas: nil, deferred: false, condition: nil, scope_name: nil, collection_name: nil, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ CreateIndex
Creates an instance of options for QueryIndexManager#create_index
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/couchbase/management/query_index_manager.rb', line 87 def initialize(ignore_if_exists: false, num_replicas: nil, deferred: false, condition: nil, 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) @ignore_if_exists = ignore_if_exists @num_replicas = num_replicas @deferred = deferred @condition = condition @scope_name = scope_name @collection_name = collection_name yield self if block_given? end |
Instance Attribute Details
#collection_name ⇒ String?
70 71 72 |
# File 'lib/couchbase/management/query_index_manager.rb', line 70 def collection_name @collection_name end |
#condition ⇒ String?
68 69 70 |
# File 'lib/couchbase/management/query_index_manager.rb', line 68 def condition @condition end |
#deferred ⇒ Boolean
67 68 69 |
# File 'lib/couchbase/management/query_index_manager.rb', line 67 def deferred @deferred end |
#ignore_if_exists ⇒ Boolean
65 66 67 |
# File 'lib/couchbase/management/query_index_manager.rb', line 65 def ignore_if_exists @ignore_if_exists end |
#num_replicas ⇒ Integer?
66 67 68 |
# File 'lib/couchbase/management/query_index_manager.rb', line 66 def num_replicas @num_replicas end |
#scope_name ⇒ String?
69 70 71 |
# File 'lib/couchbase/management/query_index_manager.rb', line 69 def scope_name @scope_name end |