Hitachi

In-Memory Data Grid Hitachi Elastic Application Data Store


2.6.1 Grouping keys

You group keys by assigning a group name to the keys. This subsection explains group names, element names, and group hierarchies.

Organization of this subsection

(1) Group names and element names

You group keys by specifying a group name for the keys.

Define a key in the format group-name:element-name. Separate the group name and the element name with a colon (:).

The following figure shows the structure of keys when keys are grouped.

Figure 2‒20: Structure of keys

[Figure]

Group name

This is a name of a group of specific keys.

Element name

This is a name used to uniquely identify a value.

If keys are not grouped, this becomes the key.

(2) Defining group and element names

Each key must be unique within the cache. Therefore, multiple keys that have the same group and element names cannot be defined in the same cache.

As shown in the following figure, keys with identical group and element names can be defined as long as their storage caches are different:

[Figure]

(3) Group hierarchies

You can arrange groups hierarchically by defining multiple group names, such as Group1:Group2:Group3:ElementA. The name of each group is called the group hierarchy name.

By using group hierarchies, you can perform more detailed data manipulation involving a specific hierarchy, such as totaling the data belonging to Group2 in the data in Group1.

When groups are configured in a hierarchy, a group name consists of the highest group hierarchy name through the corresponding group hierarchy name. For example, in Group1:Group2:Group3:ElementA, group hierarchy names are Group1, Group2, and Group3, and group names are Group1, Group1:Group2, and Group1:Group2:Group3.