Class: Groonga::Command::LogicalSelect

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

Overview

A command class that represents logical_select command.

Since:

  • 1.1.3

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

Since:

  • 1.1.3



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/logical-select.rb', line 28

def parameter_names
  [
    :logical_table,
    :shard_key,
    :min,
    :min_border,
    :max,
    :max_border,
    :filter,
    :sortby,
    :output_columns,
    :offset,
    :limit,
    :drilldown,
    :drilldown_sortby,
    :drilldown_output_columns,
    :drilldown_offset,
    :drilldown_limit,
    :drilldown_calc_types,
    :drilldown_calc_target,
  ]
end

Instance Method Details

#drilldownString

Returns drilldown parameter value.

Returns:

  • (String)

    drilldown parameter value.

Since:

  • 1.1.3



132
133
134
# File 'lib/groonga/command/logical-select.rb', line 132

def drilldown
  self[:drilldown]
end

#drilldown_calc_targetString

Returns drilldown_calc_target parameter value.

Returns:

  • (String)

    drilldown_calc_target parameter value.

Since:

  • 1.1.3



181
182
183
# File 'lib/groonga/command/logical-select.rb', line 181

def drilldown_calc_target
  self[:drilldown_calc_target]
end

#drilldown_calc_typesString

Returns drilldown_calc_types parameter value.

Returns:

  • (String)

    drilldown_calc_types parameter value.

Since:

  • 1.1.3



174
175
176
# File 'lib/groonga/command/logical-select.rb', line 174

def drilldown_calc_types
  self[:drilldown_calc_types]
end

#drilldown_limitString

Returns drilldown_limit parameter value.

Returns:

  • (String)

    drilldown_limit parameter value.

Since:

  • 1.1.3



167
168
169
# File 'lib/groonga/command/logical-select.rb', line 167

def drilldown_limit
  integer_value(:drilldown_limit)
end

#drilldown_offsetString

Returns drilldown_offset parameter value.

Returns:

  • (String)

    drilldown_offset parameter value.

Since:

  • 1.1.3



160
161
162
# File 'lib/groonga/command/logical-select.rb', line 160

def drilldown_offset
  integer_value(:drilldown_offset)
end

#drilldown_output_columnsString

Returns drilldown_output_columns parameter value.

Returns:

  • (String)

    drilldown_output_columns parameter value.

Since:

  • 1.1.3



153
154
155
# File 'lib/groonga/command/logical-select.rb', line 153

def drilldown_output_columns
  self[:drilldown_output_columns]
end

#drilldown_sortbyString

Returns drilldown_sortby parameter value.

Returns:

  • (String)

    drilldown_sortby parameter value.

Since:

  • 1.1.3



146
147
148
# File 'lib/groonga/command/logical-select.rb', line 146

def drilldown_sortby
  self[:drilldown_sortby]
end

#drilldownsArray<String>

Returns drilldown keys.

Returns:

  • (Array<String>)

    drilldown keys.

Since:

  • 1.1.3



139
140
141
# File 'lib/groonga/command/logical-select.rb', line 139

def drilldowns
  @drilldowns ||= array_value(:drilldown)
end

#filterString

Returns filter parameter value.

Returns:

  • (String)

    filter parameter value.

Since:

  • 1.1.3



97
98
99
# File 'lib/groonga/command/logical-select.rb', line 97

def filter
  self[:filter]
end

#limitInteger

Returns limit parameter value.

Returns:

  • (Integer)

    limit parameter value.

Since:

  • 1.1.3



125
126
127
# File 'lib/groonga/command/logical-select.rb', line 125

def limit
  integer_value(:limit)
end

#logical_tableString

Returns logical_table parameter value.

Returns:

  • (String)

    logical_table parameter value.

Since:

  • 1.1.3



55
56
57
# File 'lib/groonga/command/logical-select.rb', line 55

def logical_table
  self[:logical_table]
end

#maxString

Returns max parameter value.

Returns:

  • (String)

    max parameter value.

Since:

  • 1.1.3



83
84
85
# File 'lib/groonga/command/logical-select.rb', line 83

def max
  self[:max]
end

#max_borderString

Returns max_border parameter value.

Returns:

  • (String)

    max_border parameter value.

Since:

  • 1.1.3



90
91
92
# File 'lib/groonga/command/logical-select.rb', line 90

def max_border
  self[:max_border]
end

#minString

Returns min parameter value.

Returns:

  • (String)

    min parameter value.

Since:

  • 1.1.3



69
70
71
# File 'lib/groonga/command/logical-select.rb', line 69

def min
  self[:min]
end

#min_borderString

Returns min_border parameter value.

Returns:

  • (String)

    min_border parameter value.

Since:

  • 1.1.3



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

def min_border
  self[:min_border]
end

#offsetInteger

Returns offset parameter value.

Returns:

  • (Integer)

    offset parameter value.

Since:

  • 1.1.3



118
119
120
# File 'lib/groonga/command/logical-select.rb', line 118

def offset
  integer_value(:offset)
end

#output_columnsString

Returns output_columns parameter value.

Returns:

  • (String)

    output_columns parameter value.

Since:

  • 1.1.3



111
112
113
# File 'lib/groonga/command/logical-select.rb', line 111

def output_columns
  self[:output_columns]
end

#shard_keyString

Returns shard_key parameter value.

Returns:

  • (String)

    shard_key parameter value.

Since:

  • 1.1.3



62
63
64
# File 'lib/groonga/command/logical-select.rb', line 62

def shard_key
  self[:shard_key]
end

#sortbyString

Returns sortby parameter value.

Returns:

  • (String)

    sortby parameter value.

Since:

  • 1.1.3



104
105
106
# File 'lib/groonga/command/logical-select.rb', line 104

def sortby
  self[:sortby]
end