Class: Couchbase::Management::Options::Query::CreatePrimaryIndex
- Inherits:
-
Options::Base
- Object
- Options::Base
- Couchbase::Management::Options::Query::CreatePrimaryIndex
show all
- Defined in:
- lib/couchbase/management/query_index_manager.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/management/query_index_manager.rb more...
Overview
Instance Attribute Summary collapse
#client_context, #parent_span, #retry_strategy, #timeout
Instance Method Summary
collapse
Constructor Details
#initialize(ignore_if_exists: false, num_replicas: nil, deferred: false, scope_name: nil, collection_name: nil, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ CreatePrimaryIndex
[View source]
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
# File 'lib/couchbase/management/query_index_manager.rb', line 121
def initialize(ignore_if_exists: false,
num_replicas: nil,
deferred: false,
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
@scope_name = scope_name
@collection_name = collection_name
yield self if block_given?
end
|
Instance Attribute Details
#collection_name ⇒ String?
105
106
107
|
# File 'lib/couchbase/management/query_index_manager.rb', line 105
def collection_name
@collection_name
end
|
#deferred ⇒ Boolean
103
104
105
|
# File 'lib/couchbase/management/query_index_manager.rb', line 103
def deferred
@deferred
end
|
#ignore_if_exists ⇒ Boolean
101
102
103
|
# File 'lib/couchbase/management/query_index_manager.rb', line 101
def ignore_if_exists
@ignore_if_exists
end
|
#num_replicas ⇒ Integer?
102
103
104
|
# File 'lib/couchbase/management/query_index_manager.rb', line 102
def num_replicas
@num_replicas
end
|
#scope_name ⇒ String?
104
105
106
|
# File 'lib/couchbase/management/query_index_manager.rb', line 104
def scope_name
@scope_name
end
|