Class: Groonga::Command::RangeFilter

Inherits:
Base
  • Object
show all
Includes:
Searchable
Defined in:
lib/groonga/command/range-filter.rb

Overview

A command class that represents range_filter command.

Since:

  • 1.1.0

Instance Attribute Summary

Attributes inherited from Base

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Searchable

#conditions

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

Since:

  • 1.1.0



29
30
31
# File 'lib/groonga/command/range-filter.rb', line 29

def command_name
  "range_filter"
end

.parameter_names ⇒ Object

Since:

  • 1.1.0



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.

Returns:

  • (String) —

    column parameter value.

Since:

  • 1.1.0



61
62
63
# File 'lib/groonga/command/range-filter.rb', line 61

def column
  self[:column]
end

#filter ⇒ String

Returns filter parameter value.

Returns:

  • (String) —

    filter parameter value.

Since:

  • 1.1.0



114
115
116
# File 'lib/groonga/command/range-filter.rb', line 114

def filter
  self[:filter]
end

#limit ⇒ Integer

Returns limit parameter value.

Returns:

  • (Integer) —

    limit parameter value.

Since:

  • 1.1.0



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.

Returns:

  • (String) —

    max parameter value.

Since:

  • 1.1.0



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.

Returns:

  • (String) —

    max_border parameter value.

Since:

  • 1.1.0



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.

Returns:

  • (String) —

    min parameter value.

Since:

  • 1.1.0



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.

Returns:

  • (String) —

    min_border parameter value.

Since:

  • 1.1.0



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.

Returns:

  • (Integer) —

    offset parameter value.

Since:

  • 1.1.0



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.

Returns:

  • (String) —

    output_columns parameter value.

Since:

  • 1.1.0



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.

Returns:

  • (String) —

    table parameter value.

Since:

  • 1.1.0



54
55
56
# File 'lib/groonga/command/range-filter.rb', line 54

def table
  self[:table]
end