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, #command_name, #original_format, #original_source, #path_prefix

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#==, #[], #[]=, #command_format?, #initialize, #key?, #name, #output_type, #request_id, #to_command_format, #to_uri_format, #uri_format?

Constructor Details

This class inherits a constructor from Groonga::Command::Base

Class Method Details

.command_nameObject

Since:

  • 1.1.3



26
27
28
# File 'lib/groonga/command/logical-select.rb', line 26

def command_name
  "logical_select"
end

.parameter_namesObject

Since:

  • 1.1.3



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

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



136
137
138
# File 'lib/groonga/command/logical-select.rb', line 136

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



185
186
187
# File 'lib/groonga/command/logical-select.rb', line 185

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



178
179
180
# File 'lib/groonga/command/logical-select.rb', line 178

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



171
172
173
# File 'lib/groonga/command/logical-select.rb', line 171

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



164
165
166
# File 'lib/groonga/command/logical-select.rb', line 164

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



157
158
159
# File 'lib/groonga/command/logical-select.rb', line 157

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



150
151
152
# File 'lib/groonga/command/logical-select.rb', line 150

def drilldown_sortby
  self[:drilldown_sortby]
end

#drilldownsArray<String>

Returns drilldown keys.

Returns:

  • (Array<String>)

    drilldown keys.

Since:

  • 1.1.3



143
144
145
# File 'lib/groonga/command/logical-select.rb', line 143

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

#filterString

Returns filter parameter value.

Returns:

  • (String)

    filter parameter value.

Since:

  • 1.1.3



101
102
103
# File 'lib/groonga/command/logical-select.rb', line 101

def filter
  self[:filter]
end

#limitInteger

Returns limit parameter value.

Returns:

  • (Integer)

    limit parameter value.

Since:

  • 1.1.3



129
130
131
# File 'lib/groonga/command/logical-select.rb', line 129

def limit
  integer_value(:limit)
end

#logical_tableString

Returns logical_table parameter value.

Returns:

  • (String)

    logical_table parameter value.

Since:

  • 1.1.3



59
60
61
# File 'lib/groonga/command/logical-select.rb', line 59

def logical_table
  self[:logical_table]
end

#maxString

Returns max parameter value.

Returns:

  • (String)

    max parameter value.

Since:

  • 1.1.3



87
88
89
# File 'lib/groonga/command/logical-select.rb', line 87

def max
  self[:max]
end

#max_borderString

Returns max_border parameter value.

Returns:

  • (String)

    max_border parameter value.

Since:

  • 1.1.3



94
95
96
# File 'lib/groonga/command/logical-select.rb', line 94

def max_border
  self[:max_border]
end

#minString

Returns min parameter value.

Returns:

  • (String)

    min parameter value.

Since:

  • 1.1.3



73
74
75
# File 'lib/groonga/command/logical-select.rb', line 73

def min
  self[:min]
end

#min_borderString

Returns min_border parameter value.

Returns:

  • (String)

    min_border parameter value.

Since:

  • 1.1.3



80
81
82
# File 'lib/groonga/command/logical-select.rb', line 80

def min_border
  self[:min_border]
end

#offsetInteger

Returns offset parameter value.

Returns:

  • (Integer)

    offset parameter value.

Since:

  • 1.1.3



122
123
124
# File 'lib/groonga/command/logical-select.rb', line 122

def offset
  integer_value(:offset)
end

#output_columnsString

Returns output_columns parameter value.

Returns:

  • (String)

    output_columns parameter value.

Since:

  • 1.1.3



115
116
117
# File 'lib/groonga/command/logical-select.rb', line 115

def output_columns
  self[:output_columns]
end

#shard_keyString

Returns shard_key parameter value.

Returns:

  • (String)

    shard_key parameter value.

Since:

  • 1.1.3



66
67
68
# File 'lib/groonga/command/logical-select.rb', line 66

def shard_key
  self[:shard_key]
end

#sortbyString

Returns sortby parameter value.

Returns:

  • (String)

    sortby parameter value.

Since:

  • 1.1.3



108
109
110
# File 'lib/groonga/command/logical-select.rb', line 108

def sortby
  self[:sortby]
end