Hitachi

In-Memory Data Grid Hitachi Elastic Application Data Store


20.1.28 ead_get_group_next_key() (acquires the next key with group specification)

Organization of this subsection

(1) Description

This function acquires the key that immediately follows a specified key in ascending order based on its ASCII code value from among all the keys that belong to a specified group. The keys that belong to the groups under the specified group's hierarchy are also subject to this acquisition processing.

If the specified key does not exist on the connection-target EADS server, the function similarly acquires the key that immediately follows the specified key.

(2) Format

#include <eads.h>
char* ead_get_group_next_key
(
  const EAD_CACHE     *cp,            /* In */
  const char          *group_name,    /* In */ 
  const char          *key,           /* In */
  int                 *error_code     /* Out */
);

(3) Arguments

cp

Specifies the handle (pointer) to the cache in which the key is to be acquired.

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

group_name

Specifies a group name.

For details about the data that can be specified, see 15.2.2(2) Data that can be specified as group names.

key

Specifies the reference key.

For details about the data types that can be specified, see 15.2.2(1) Data types that can be specified as 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

This function returns the key that immediately follows the specified key in ascending order based on its ASCII code value from among all the keys that belong to the specified group.

The function returns NULL in the following cases:

(5) Notes