Class: Tarantool::Client::IndexInfo
- Inherits:
-
Data
- Object
- Data
- Tarantool::Client::IndexInfo
- Defined in:
- tarantool-client/lib/tarantool/client/index_info.rb
Overview
One index of a space as listed in _vindex.
Defined Under Namespace
Classes: Part
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#parts ⇒ Object
readonly
Returns the value of attribute parts.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#unique ⇒ Object
readonly
Returns the value of attribute unique.
Class Method Summary collapse
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id
6 7 8 |
# File 'tarantool-client/lib/tarantool/client/index_info.rb', line 6 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name
6 7 8 |
# File 'tarantool-client/lib/tarantool/client/index_info.rb', line 6 def name @name end |
#parts ⇒ Object (readonly)
Returns the value of attribute parts
6 7 8 |
# File 'tarantool-client/lib/tarantool/client/index_info.rb', line 6 def parts @parts end |
#type ⇒ Object (readonly)
Returns the value of attribute type
6 7 8 |
# File 'tarantool-client/lib/tarantool/client/index_info.rb', line 6 def type @type end |
#unique ⇒ Object (readonly)
Returns the value of attribute unique
6 7 8 |
# File 'tarantool-client/lib/tarantool/client/index_info.rb', line 6 def unique @unique end |
Class Method Details
.from_tuple(tuple, fields) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'tarantool-client/lib/tarantool/client/index_info.rb', line 7 def self.from_tuple(tuple, fields) _space_id, id, name, type, opts, parts = tuple new( id:, name:, type:, unique: (opts || {}).fetch('unique', true), parts: (parts || []).map { |raw| IndexInfo::Part.from_raw(raw, fields) } ) end |