Class: Groonga::Command::LogicalSelect

Inherits:
Base
  • Object
show all
Includes:
Drilldownable, Searchable, Sliceable
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 included from Sliceable

#slices

Methods included from Searchable

#conditions

Methods included from Drilldownable

#drilldown, #drilldown_calc_target, #drilldown_calc_types, #drilldown_filter, #drilldown_limit, #drilldown_offset, #drilldown_output_columns, #drilldown_sort_keys, #drilldown_sortby, #drilldowns, #labeled_drilldowns

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_nameObject

Since:

  • 1.1.3



33
34
35
# File 'lib/groonga/command/logical-select.rb', line 33

def command_name
  "logical_select"
end

.parameter_namesObject

Since:

  • 1.1.3



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/groonga/command/logical-select.rb', line 37

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,
    :sort_keys,
    :drilldown_sort_keys,
    :match_columns,
    :query,
    :drilldown_filter,
    :load_table,
    :load_columns,
    :load_values,
  ]
end

Instance Method Details

#filterString

Returns filter parameter value.

Returns:

  • (String)

    filter parameter value.

Since:

  • 1.1.3



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

def filter
  self[:filter]
end

#limitInteger

Returns limit parameter value.

Returns:

  • (Integer)

    limit parameter value.

Since:

  • 1.1.3



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

def limit
  integer_value(:limit)
end

#logical_tableString

Returns logical_table parameter value.

Returns:

  • (String)

    logical_table parameter value.

Since:

  • 1.1.3



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

def logical_table
  self[:logical_table]
end

#maxString

Returns max parameter value.

Returns:

  • (String)

    max parameter value.

Since:

  • 1.1.3



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

def max
  self[:max]
end

#max_borderString

Returns max_border parameter value.

Returns:

  • (String)

    max_border parameter value.

Since:

  • 1.1.3



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

def max_border
  self[:max_border]
end

#minString

Returns min parameter value.

Returns:

  • (String)

    min parameter value.

Since:

  • 1.1.3



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

def min
  self[:min]
end

#min_borderString

Returns min_border parameter value.

Returns:

  • (String)

    min_border parameter value.

Since:

  • 1.1.3



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

def min_border
  self[:min_border]
end

#offsetInteger

Returns offset parameter value.

Returns:

  • (Integer)

    offset parameter value.

Since:

  • 1.1.3



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

def offset
  integer_value(:offset)
end

#output_columnsString

Returns output_columns parameter value.

Returns:

  • (String)

    output_columns parameter value.

Since:

  • 1.1.3



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

def output_columns
  self[:output_columns]
end

#shard_keyString

Returns shard_key parameter value.

Returns:

  • (String)

    shard_key parameter value.

Since:

  • 1.1.3



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

def shard_key
  self[:shard_key]
end

#sort_keys::Array<String>

Returns The sort keys.

Returns:

  • (::Array<String>)

    The sort keys.

Since:

  • 1.4.2



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

def sort_keys
  parse_array_value(self[:sort_keys] || self[:sortby] || "")
end

#sortbyString

Returns sortby parameter value.

Returns:

  • (String)

    sortby parameter value.

Since:

  • 1.1.3



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

def sortby
  self[:sortby]
end