Class: Groonga::Client::Response::ColumnList::Column
- Inherits:
-
Struct
- Object
- Struct
- Groonga::Client::Response::ColumnList::Column
- Defined in:
- lib/groonga/client/response/column-list.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#flags ⇒ ::Array<String>
The flag names of the column.
-
#generator ⇒ Object
Returns the value of attribute generator.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
-
#range ⇒ Object
Returns the value of attribute range.
-
#source ⇒ Object
(also: #sources)
Returns the value of attribute source.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#full_name ⇒ String
The column name with table name such as
TABLE.COLUMN
. -
#index? ⇒ Boolean
true
if the column is an index column,false
otherwise. -
#scalar? ⇒ Boolean
true
if the column is a scalar column,false
otherwise. -
#vector? ⇒ Boolean
true
if the column is a vector column,false
otherwise.
Instance Attribute Details
#domain ⇒ Object
Returns the value of attribute domain
59 60 61 |
# File 'lib/groonga/client/response/column-list.rb', line 59 def domain @domain end |
#flags ⇒ ::Array<String>
Returns The flag names of the column.
80 81 82 |
# File 'lib/groonga/client/response/column-list.rb', line 80 def flags @flags end |
#generator ⇒ Object
Returns the value of attribute generator
59 60 61 |
# File 'lib/groonga/client/response/column-list.rb', line 59 def generator @generator end |
#id ⇒ Object
Returns the value of attribute id
59 60 61 |
# File 'lib/groonga/client/response/column-list.rb', line 59 def id @id end |
#name ⇒ Object
Returns the value of attribute name
59 60 61 |
# File 'lib/groonga/client/response/column-list.rb', line 59 def name @name end |
#path ⇒ Object
Returns the value of attribute path
59 60 61 |
# File 'lib/groonga/client/response/column-list.rb', line 59 def path @path end |
#range ⇒ Object
Returns the value of attribute range
59 60 61 |
# File 'lib/groonga/client/response/column-list.rb', line 59 def range @range end |
#source ⇒ Object Also known as: sources
Returns the value of attribute source
59 60 61 |
# File 'lib/groonga/client/response/column-list.rb', line 59 def source @source end |
#type ⇒ Object
Returns the value of attribute type
59 60 61 |
# File 'lib/groonga/client/response/column-list.rb', line 59 def type @type end |
Instance Method Details
#full_name ⇒ String
Returns The column name with table name such as TABLE.COLUMN
.
72 73 74 |
# File 'lib/groonga/client/response/column-list.rb', line 72 def full_name "#{domain}.#{name}" end |
#index? ⇒ Boolean
Returns true
if the column is an index column, false
otherwise.
104 105 106 |
# File 'lib/groonga/client/response/column-list.rb', line 104 def index? flags.include?("COLUMN_INDEX") end |
#scalar? ⇒ Boolean
Returns true
if the column is a scalar column, false
otherwise.
88 89 90 |
# File 'lib/groonga/client/response/column-list.rb', line 88 def scalar? flags.include?("COLUMN_SCALAR") end |
#vector? ⇒ Boolean
Returns true
if the column is a vector column, false
otherwise.
96 97 98 |
# File 'lib/groonga/client/response/column-list.rb', line 96 def vector? flags.include?("COLUMN_VECTOR") end |