Hitachi

In-Memory Data Grid Hitachi Elastic Application Data Store


20.1.14 ead_get_all() (acquires values by using a batch operation)

Organization of this subsection

(1) Description

Using a batch operation, this function acquires the values associated with a specified list of keys.

If the same key is specified multiple times, it is processed multiple times in the order specified in the list of keys.

(2) Format

#include <eads.h>
ead_get_all_results ead_get_all
(
  const EAD_CACHE     *cp,           /* In */
  const ead_keys      *keys,         /* In */
  int                 *error_code    /* Out */
);

(3) Arguments

cp

Specifies the handle (pointer) to the cache where the values to be acquired are stored.

Specify the handle (pointer) obtained from ead_start_cache() when access to the cache was started.

keys

Specifies a list of keys (ead_keys structure) that are associated with the values to be acquired.

For details about the data types that can be specified, see 15.2.2(1) Data types that can be specified as keys.

For details about the ead_keys structure and its format, see 20.1.41 ead_keys structure (multiple keys).

error_code

Specifies the pointer from which to retrieve the error code.

For details about error codes, see 20.2 Error codes in the client library (C).

(4) Return value

Using a batch operation, this function returns the results (ead_get_all_results structure) of acquiring the values associated with the specified list of keys.

For details about the ead_get_all_results structure and its format, see 20.1.44 ead_get_all_results structure (execution results of ead_get_all()).

(5) Notes