Class: Couchbase::Management::QueryIndex
- Inherits:
-
Object
- Object
- Couchbase::Management::QueryIndex
- Defined in:
- lib/couchbase/management/query_index_manager.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/management/query_index_manager.rb more...
Instance Attribute Summary collapse
-
#bucket ⇒ String?
The name of the bucket.
-
#collection ⇒ String?
The name of the collection.
-
#condition ⇒ String
The string representation of the index’s condition (the WHERE clause of the index), or an empty Optional if no condition was set.
-
#index_key ⇒ Array<String>
An array of Strings that represent the index key(s).
-
#is_primary ⇒ Boolean
(also: #primary?)
True if this is a primary index.
-
#key_space ⇒ String
The key space for the index, typically the bucket name.
-
#name ⇒ String
Name of the index.
-
#name_space ⇒ String
The namespace for the index.
-
#scope ⇒ String?
The name of the scope.
-
#state ⇒ Symbol
State.
-
#type ⇒ :gsi, :view
Type of the index.
Instance Method Summary collapse
-
#initialize {|self| ... } ⇒ QueryIndex
constructor
A new instance of QueryIndex.
Constructor Details
#initialize {|self| ... } ⇒ QueryIndex
Returns a new instance of QueryIndex.
337 338 339 |
# File 'lib/couchbase/management/query_index_manager.rb', line 337 def initialize yield self if block_given? end |
Instance Attribute Details
#bucket ⇒ String?
Returns the name of the bucket.
307 308 309 |
# File 'lib/couchbase/management/query_index_manager.rb', line 307 def bucket @bucket end |
#collection ⇒ String?
Returns the name of the collection.
313 314 315 |
# File 'lib/couchbase/management/query_index_manager.rb', line 313 def collection @collection end |
#condition ⇒ String
that the query service can present the condition in a slightly different manner from when you declared the index. For instance it will wrap expressions with parentheses and show the fields in an escaped format (surrounded by backticks).
Returns the string representation of the index’s condition (the WHERE clause of the index), or an empty Optional if no condition was set.
334 335 336 |
# File 'lib/couchbase/management/query_index_manager.rb', line 334 def condition @condition end |
#index_key ⇒ Array<String>
the query service can present the key in a slightly different manner from when you declared the index: for instance, it will show the indexed fields in an escaped format (surrounded by backticks).
Returns an array of Strings that represent the index key(s). The array is empty in the case of a PRIMARY INDEX.
326 327 328 |
# File 'lib/couchbase/management/query_index_manager.rb', line 326 def index_key @index_key end |
#is_primary ⇒ Boolean Also known as: primary?
Returns true if this is a primary index.
297 298 299 |
# File 'lib/couchbase/management/query_index_manager.rb', line 297 def is_primary @is_primary end |
#key_space ⇒ String
Returns the key space for the index, typically the bucket name.
316 317 318 |
# File 'lib/couchbase/management/query_index_manager.rb', line 316 def key_space @key_space end |
#name ⇒ String
Returns name of the index.
294 295 296 |
# File 'lib/couchbase/management/query_index_manager.rb', line 294 def name @name end |
#name_space ⇒ String
Returns the namespace for the index. A namespace is a resource pool that contains multiple key spaces.
319 320 321 |
# File 'lib/couchbase/management/query_index_manager.rb', line 319 def name_space @name_space end |
#scope ⇒ String?
Returns the name of the scope.
310 311 312 |
# File 'lib/couchbase/management/query_index_manager.rb', line 310 def scope @scope end |
#state ⇒ Symbol
Returns state.
304 305 306 |
# File 'lib/couchbase/management/query_index_manager.rb', line 304 def state @state end |
#type ⇒ :gsi, :view
Returns type of the index.
301 302 303 |
# File 'lib/couchbase/management/query_index_manager.rb', line 301 def type @type end |