Class: Groonga::Command::Load

Inherits:
Base
  • Object
show all
Defined in:
lib/groonga/command/load.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#arguments, #command_name, #original_format, #original_source, #path_prefix

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#==, #[], #[]=, #command_format?, #key?, #name, #output_type, #request_id, #to_command_format, #to_uri_format, #uri_format?

Constructor Details

#initialize(*argumetns) ⇒ Load

Returns a new instance of Load.



48
49
50
51
52
# File 'lib/groonga/command/load.rb', line 48

def initialize(*argumetns)
  super
  @values = nil
  @columns = nil
end

Instance Attribute Details

#columnsObject



58
59
60
# File 'lib/groonga/command/load.rb', line 58

def columns
  @columns ||= parse_columns(self[:columns])
end

#valuesObject



54
55
56
# File 'lib/groonga/command/load.rb', line 54

def values
  @values ||= parse_values(self[:values])
end

Class Method Details

.command_nameObject



27
28
29
# File 'lib/groonga/command/load.rb', line 27

def command_name
  "load"
end

.parameter_namesObject



31
32
33
34
35
36
37
38
39
40
41
# File 'lib/groonga/command/load.rb', line 31

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".

Returns:

  • (Boolean)

    true if output_ids value is "yes".

Since:

  • 1.3.0



65
66
67
# File 'lib/groonga/command/load.rb', line 65

def output_ids?
  self[:output_ids] == "yes"
end