Class: Groonga::Client::Response::Load
- Defined in:
- lib/groonga/client/response/load.rb
Defined Under Namespace
Classes: Error
Instance Attribute Summary collapse
-
#errors ⇒ ::Array<Groonga::Client::Response::Load::Error>
The errors of loaded records.
-
#loaded_ids ⇒ ::Array<Integer>
The IDs of loaded records.
-
#n_loaded_records ⇒ Integer
The number of loaded records.
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.
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.
38 39 40 |
# File 'lib/groonga/client/response/load.rb', line 38 def loaded_ids @loaded_ids end |
#n_loaded_records ⇒ Integer
Returns The number of loaded records.
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 |