Class: Groonga::Client::Request::Select::OutputColumnsParameter

Inherits:
ValuesParameter
  • Object
show all
Defined in:
lib/groonga/client/request/select.rb

Instance Method Summary collapse

Constructor Details

#initialize(prefix, output_columns) ⇒ OutputColumnsParameter

Returns a new instance of OutputColumnsParameter.



852
853
854
# File 'lib/groonga/client/request/select.rb', line 852

def initialize(prefix, output_columns)
  super([:"#{prefix}output_columns"], output_columns)
end

Instance Method Details

#to_parametersObject



856
857
858
859
860
861
862
863
864
865
866
# File 'lib/groonga/client/request/select.rb', line 856

def to_parameters
  parameters = super
  @names.each do |name|
    output_columns = parameters[name]
    if output_columns and output_columns.include?("(")
      parameters[:command_version] = "2"
      break
    end
  end
  parameters
end