Class: Groonga::Command::RangeFilter
- Includes:
- Searchable
- Defined in:
- lib/groonga/command/range-filter.rb
Overview
A command class that represents range_filter
command.
Instance Attribute Summary
Attributes inherited from Base
#arguments, #command_name, #original_format, #original_source, #path_prefix
Class Method Summary collapse
Instance Method Summary collapse
-
#column ⇒ String
column
parameter value. -
#filter ⇒ String
filter
parameter value. -
#limit ⇒ Integer
limit
parameter value. -
#max ⇒ String
max
parameter value. -
#max_border ⇒ String
max_border
parameter value. -
#min ⇒ String
min
parameter value. -
#min_border ⇒ String
min_border
parameter value. -
#offset ⇒ Integer
offset
parameter value. -
#output_columns ⇒ String
output_columns
parameter value. -
#table ⇒ String
table
parameter value.
Methods included from Searchable
Methods inherited from Base
#==, #[], #[]=, #command_format?, #initialize, #key?, #name, #output_type, #request_id, #to_command_format, #to_elasticsearch_format, #to_s, #to_uri_format, #uri_format?
Constructor Details
This class inherits a constructor from Groonga::Command::Base
Class Method Details
.command_name ⇒ Object
29 30 31 |
# File 'lib/groonga/command/range-filter.rb', line 29 def command_name "range_filter" end |
.parameter_names ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/groonga/command/range-filter.rb', line 33 def parameter_names [ :table, :column, :min, :min_border, :max, :max_border, :offset, :limit, :filter, :output_columns, ] end |
Instance Method Details
#column ⇒ String
Returns column
parameter value.
61 62 63 |
# File 'lib/groonga/command/range-filter.rb', line 61 def column self[:column] end |
#filter ⇒ String
Returns filter
parameter value.
114 115 116 |
# File 'lib/groonga/command/range-filter.rb', line 114 def filter self[:filter] end |
#limit ⇒ Integer
Returns limit
parameter value.
105 106 107 108 109 |
# File 'lib/groonga/command/range-filter.rb', line 105 def limit value = self[:limit] value = value.to_i unless value.nil? value end |
#max ⇒ String
Returns max
parameter value.
82 83 84 |
# File 'lib/groonga/command/range-filter.rb', line 82 def max self[:max] end |
#max_border ⇒ String
Returns max_border
parameter value.
89 90 91 |
# File 'lib/groonga/command/range-filter.rb', line 89 def max_border self[:max_border] end |
#min ⇒ String
Returns min
parameter value.
68 69 70 |
# File 'lib/groonga/command/range-filter.rb', line 68 def min self[:min] end |
#min_border ⇒ String
Returns min_border
parameter value.
75 76 77 |
# File 'lib/groonga/command/range-filter.rb', line 75 def min_border self[:min_border] end |
#offset ⇒ Integer
Returns offset
parameter value.
96 97 98 99 100 |
# File 'lib/groonga/command/range-filter.rb', line 96 def offset value = self[:offset] value = value.to_i unless value.nil? value end |
#output_columns ⇒ String
Returns output_columns
parameter value.
121 122 123 |
# File 'lib/groonga/command/range-filter.rb', line 121 def output_columns self[:output_columns] end |
#table ⇒ String
Returns table
parameter value.
54 55 56 |
# File 'lib/groonga/command/range-filter.rb', line 54 def table self[:table] end |