Class: Groonga::Client::Response::Load

Inherits:
Base
  • Object
show all
Defined in:
lib/groonga/client/response/load.rb

Defined Under Namespace

Classes: Error

Instance Attribute Summary collapse

Attributes inherited from Base

#body, #command, #header, #raw, #trace_logs

Instance Method Summary collapse

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

#errors::Array<Groonga::Client::Response::Load::Error>

Returns The errors of loaded records. error.return_code isn't 0 if the corresponding record is failed to load.

If you don't specify yes to output_errors load parameter, this is always an empty array.

Returns:

  • (::Array<Groonga::Client::Response::Load::Error>)

    The errors of loaded records. error.return_code isn't 0 if the corresponding record is failed to load.

    If you don't specify yes to output_errors load parameter, this is always an empty array.

Since:

  • 0.4.1



48
49
50
# File 'lib/groonga/client/response/load.rb', line 48

def errors
  @errors
end

#loaded_ids::Array<Integer>

Returns The IDs of loaded records. ID is 0 if the corresponding record is failed to add.

If you don't specify yes to output_ids load parameter, this is always an empty array.

Returns:

  • (::Array<Integer>)

    The IDs of loaded records. ID is 0 if the corresponding record is failed to add.

    If you don't specify yes to output_ids load parameter, this is always an empty array.

Since:

  • 0.3.3



38
39
40
# File 'lib/groonga/client/response/load.rb', line 38

def loaded_ids
  @loaded_ids
end

#n_loaded_recordsInteger

Returns The number of loaded records.

Returns:

  • (Integer)

    The number of loaded records.

Since:

  • 0.3.2



29
30
31
# File 'lib/groonga/client/response/load.rb', line 29

def n_loaded_records
  @n_loaded_records
end

Instance Method Details

#body=(body) ⇒ Object



50
51
52
53
# File 'lib/groonga/client/response/load.rb', line 50

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