Class: Groonga::Command::ColumnCreate
- Defined in:
- lib/groonga/command/column-create.rb
Instance Attribute Summary
Attributes inherited from Base
#arguments, #name, #original_format, #original_source
Class Method Summary collapse
Instance Method Summary collapse
-
#column_index? ⇒ Boolean
True if “COLUMN_INDEX” is specified in #flags, false otherwise.
-
#column_scalar? ⇒ Boolean
True if “COLUMN_SCALAR” is specified in #flags, false otherwise.
-
#column_vector? ⇒ Boolean
True if “COLUMN_VECTOR” is specified in #flags, false otherwise.
- #flags ⇒ Object
-
#with_position? ⇒ Boolean
True if “WITH_POSITION” is specified in #flags, false otherwise.
-
#with_section? ⇒ Boolean
True if “WITH_SECTION” is specified in #flags, false otherwise.
-
#with_weight? ⇒ Boolean
True if “WITH_WEIGHT” is specified in #flags, false otherwise.
Methods inherited from Base
#==, #[], #[]=, #command_format?, #has_key?, #initialize, #output_type, #to_command_format, #to_uri_format, #uri_format?
Constructor Details
This class inherits a constructor from Groonga::Command::Base
Class Method Details
.parameter_names ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/groonga/command/column-create.rb', line 27 def parameter_names [ :table, :name, :flags, :type, :source, ] end |
Instance Method Details
#column_index? ⇒ Boolean
Returns true if “COLUMN_INDEX” is specified in #flags, false otherwise.
59 60 61 |
# File 'lib/groonga/command/column-create.rb', line 59 def column_index? flags.include?("COLUMN_INDEX") end |
#column_scalar? ⇒ Boolean
Returns true if “COLUMN_SCALAR” is specified in #flags, false otherwise.
45 46 47 |
# File 'lib/groonga/command/column-create.rb', line 45 def column_scalar? flags.include?("COLUMN_SCALAR") end |
#column_vector? ⇒ Boolean
Returns true if “COLUMN_VECTOR” is specified in #flags, false otherwise.
52 53 54 |
# File 'lib/groonga/command/column-create.rb', line 52 def column_vector? flags.include?("COLUMN_VECTOR") end |
#flags ⇒ Object
38 39 40 |
# File 'lib/groonga/command/column-create.rb', line 38 def flags @flags ||= (self[:flags] || "").split(/\s*\|\s*/) end |
#with_position? ⇒ Boolean
Returns true if “WITH_POSITION” is specified in #flags, false otherwise.
80 81 82 |
# File 'lib/groonga/command/column-create.rb', line 80 def with_position? flags.include?("WITH_POSITION") end |
#with_section? ⇒ Boolean
Returns true if “WITH_SECTION” is specified in #flags, false otherwise.
66 67 68 |
# File 'lib/groonga/command/column-create.rb', line 66 def with_section? flags.include?("WITH_SECTION") end |
#with_weight? ⇒ Boolean
Returns true if “WITH_WEIGHT” is specified in #flags, false otherwise.
73 74 75 |
# File 'lib/groonga/command/column-create.rb', line 73 def with_weight? flags.include?("WITH_WEIGHT") end |