Class: Couchbase::Management::Options::Query::CreatePrimaryIndex
- Inherits:
-
Options::Base
- Object
- Options::Base
- Couchbase::Management::Options::Query::CreatePrimaryIndex
- Defined in:
- lib/couchbase/management/query_index_manager.rb
Overview
Options for QueryIndexManager#create_primary_index
Instance Attribute Summary collapse
- #collection_name ⇒ String?
- #deferred ⇒ Boolean
- #ignore_if_exists ⇒ Boolean
- #index_name ⇒ String. nil
- #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, index_name: nil, scope_name: nil, collection_name: nil, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ CreatePrimaryIndex
constructor
Creates an instance of options for QueryIndexManager#create_primary_index.
Constructor Details
#initialize(ignore_if_exists: false, num_replicas: nil, deferred: false, index_name: nil, scope_name: nil, collection_name: nil, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ CreatePrimaryIndex
Creates an instance of options for QueryIndexManager#create_primary_index
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/couchbase/management/query_index_manager.rb', line 145 def initialize(ignore_if_exists: false, num_replicas: nil, deferred: false, index_name: 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 @index_name = index_name @scope_name = scope_name @collection_name = collection_name yield self if block_given? end |
Instance Attribute Details
#collection_name ⇒ String?
128 129 130 |
# File 'lib/couchbase/management/query_index_manager.rb', line 128 def collection_name @collection_name end |
#deferred ⇒ Boolean
125 126 127 |
# File 'lib/couchbase/management/query_index_manager.rb', line 125 def deferred @deferred end |
#ignore_if_exists ⇒ Boolean
123 124 125 |
# File 'lib/couchbase/management/query_index_manager.rb', line 123 def ignore_if_exists @ignore_if_exists end |
#index_name ⇒ String. nil
126 127 128 |
# File 'lib/couchbase/management/query_index_manager.rb', line 126 def index_name @index_name end |
#num_replicas ⇒ Integer?
124 125 126 |
# File 'lib/couchbase/management/query_index_manager.rb', line 124 def num_replicas @num_replicas end |
#scope_name ⇒ String?
127 128 129 |
# File 'lib/couchbase/management/query_index_manager.rb', line 127 def scope_name @scope_name end |