Class: Groonga::Command::Select

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

Instance Attribute Summary

Attributes inherited from Base

#arguments, #name, #original_format, #original_source, #path_prefix

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#==, #[], #[]=, #command_format?, #initialize, #key?, #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_namesObject



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/groonga/command/select.rb', line 27

def parameter_names
  [
    :table,
    :match_columns,
    :query,
    :filter,
    :scorer,
    :sortby,
    :output_columns,
    :offset,
    :limit,
    :drilldown,
    :drilldown_sortby,
    :drilldown_output_columns,
    :drilldown_offset,
    :drilldown_limit,
    :cache,
    :match_escalation_threshold,
    :query_expansion,
    :query_flags,
    :query_expander,
  ]
end

Instance Method Details

#conditionsObject



68
69
70
# File 'lib/groonga/command/select.rb', line 68

def conditions
  @conditions ||= split_filter_conditions
end

#drilldownsObject



72
73
74
# File 'lib/groonga/command/select.rb', line 72

def drilldowns
  @drilldowns ||= (self[:drilldown] || "").split(/\s*,\s*/)
end

#filterObject



64
65
66
# File 'lib/groonga/command/select.rb', line 64

def filter
  self[:filter]
end

#output_columnsObject



76
77
78
# File 'lib/groonga/command/select.rb', line 76

def output_columns
  self[:output_columns]
end

#queryObject



60
61
62
# File 'lib/groonga/command/select.rb', line 60

def query
  self[:query]
end

#scorerObject



56
57
58
# File 'lib/groonga/command/select.rb', line 56

def scorer
  self[:scorer]
end

#sortbyObject



52
53
54
# File 'lib/groonga/command/select.rb', line 52

def sortby
  self[:sortby]
end