Class: Groonga::Client::Response::Select

Inherits:
Base
  • Object
show all
Includes:
Drilldownable, Searchable
Defined in:
lib/groonga/client/response/select.rb

Direct Known Subclasses

LogicalSelect

Defined Under Namespace

Classes: Slice

Instance Attribute Summary collapse

Attributes included from Searchable

#raw_columns, #raw_records, #records

Attributes included from Drilldownable

#drilldowns

Attributes inherited from Base

#body, #command, #header, #raw

Instance Method Summary collapse

Methods included from Searchable

#each, #limit_value, #offset_value, #size

Methods inherited from Base

#elapsed_time, #error_message, #initialize, parse, #return_code, #start_time, #status_code, #success?

Constructor Details

This class inherits a constructor from Groonga::Client::Response::Base

Instance Attribute Details

#n_hitsInteger Also known as: total_count

Returns The number of records that match againt a search condition.

Returns:

  • (Integer)

    The number of records that match againt a search condition.


184
185
186
# File 'lib/groonga/client/response/select.rb', line 184

def n_hits
  @n_hits
end

#slices::Hash<String, Groonga::Client::Response::Select::Slice>

Returns:

Since:

  • 0.3.4


191
192
193
# File 'lib/groonga/client/response/select.rb', line 191

def slices
  @slices
end

Instance Method Details

#body=(body) ⇒ Object


193
194
195
196
# File 'lib/groonga/client/response/select.rb', line 193

def body=(body)
  super(body)
  parse_body(body)
end