Class: Couchbase::Management::QueryIndexManager::CreateIndexOptions
- Inherits:
-
Object
- Object
- Couchbase::Management::QueryIndexManager::CreateIndexOptions
- Defined in:
- lib/couchbase/management/query_index_manager.rb
Instance Attribute Summary collapse
-
#condition ⇒ String
Condition to apply to the index.
-
#deferred ⇒ Boolean
Whether the index should be created as a deferred index.
-
#ignore_if_exists ⇒ Boolean
Do not raise error if the index already exist.
-
#num_replicas ⇒ Integer
The number of replicas that this index should have.
-
#timeout ⇒ Integer
The time in milliseconds allowed for the operation to complete.
Instance Method Summary collapse
-
#initialize {|self| ... } ⇒ CreateIndexOptions
constructor
A new instance of CreateIndexOptions.
Constructor Details
#initialize {|self| ... } ⇒ CreateIndexOptions
Returns a new instance of CreateIndexOptions.
174 175 176 177 |
# File 'lib/couchbase/management/query_index_manager.rb', line 174 def initialize @ignore_if_exists = false yield self if block_given? end |
Instance Attribute Details
#condition ⇒ String
Returns condition to apply to the index.
171 172 173 |
# File 'lib/couchbase/management/query_index_manager.rb', line 171 def condition @condition end |
#deferred ⇒ Boolean
Returns whether the index should be created as a deferred index.
165 166 167 |
# File 'lib/couchbase/management/query_index_manager.rb', line 165 def deferred @deferred end |
#ignore_if_exists ⇒ Boolean
Returns do not raise error if the index already exist.
159 160 161 |
# File 'lib/couchbase/management/query_index_manager.rb', line 159 def ignore_if_exists @ignore_if_exists end |
#num_replicas ⇒ Integer
Returns the number of replicas that this index should have.
162 163 164 |
# File 'lib/couchbase/management/query_index_manager.rb', line 162 def num_replicas @num_replicas end |
#timeout ⇒ Integer
Returns the time in milliseconds allowed for the operation to complete.
168 169 170 |
# File 'lib/couchbase/management/query_index_manager.rb', line 168 def timeout @timeout end |