Class: Groonga::Command::Load
Instance Attribute Summary collapse
- #columns ⇒ Object
-
#table ⇒ String
The table name to be loaded.
- #values ⇒ Object
Attributes inherited from Base
#arguments, #command_name, #original_format, #original_source, #path_prefix
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*argumetns) ⇒ Load
constructor
A new instance of Load.
-
#output_ids? ⇒ Boolean
true
ifoutput_ids
value is"yes"
.
Methods inherited from Base
#==, #[], #[]=, #command_format?, #key?, #name, #output_type, #request_id, #to_command_format, #to_elasticsearch_format, #to_s, #to_uri_format, #uri_format?
Constructor Details
#initialize(*argumetns) ⇒ Load
Returns a new instance of Load.
47 48 49 50 51 52 |
# File 'lib/groonga/command/load.rb', line 47 def initialize(*argumetns) super @table = nil @values = nil @columns = nil end |
Instance Attribute Details
#columns ⇒ Object
65 66 67 |
# File 'lib/groonga/command/load.rb', line 65 def columns @columns ||= parse_columns(self[:columns]) end |
#table ⇒ String
Returns The table name to be loaded.
57 58 59 |
# File 'lib/groonga/command/load.rb', line 57 def table @table ||= self[:table] end |
#values ⇒ Object
61 62 63 |
# File 'lib/groonga/command/load.rb', line 61 def values @values ||= parse_values(self[:values]) end |
Class Method Details
.command_name ⇒ Object
25 26 27 |
# File 'lib/groonga/command/load.rb', line 25 def command_name "load" end |
.parameter_names ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/groonga/command/load.rb', line 29 def parameter_names [ :values, :table, :columns, :ifexists, :input_type, :each, :output_ids, ] end |
Instance Method Details
#output_ids? ⇒ Boolean
Returns true
if output_ids
value is "yes"
.
72 73 74 |
# File 'lib/groonga/command/load.rb', line 72 def output_ids? boolean_value(:output_ids, false) end |