Top
Interstage Big Data Complex Event Processing Server V1.0.0 User's Guide
Interstage

5.4.10 XTP Cache

Pay attention to the following points when considering using XTP collaboration to reference an external XTP cache from complex event processing rules:

5.4.10.1 XTP Cache Compatible Formats

An XTP cache consists of a "Key" and a "Value". A cache to be referenced by this product must be given the following structure:

Type used for "Key"

Type used for "Value"

java.lang.String

java.util.HashMap<java.lang.String, java.lang.Object>

Each property to be specified in a complex event processing rule corresponds to each "HashMap" element above.

The table below shows the type that are compatible for the value of each "HashMap" element in the cache and the corresponding type in complex event processing rules.

Type used in each "HashMap" element

Corresponding type in complex event processing rules

java.lang.String

string

java.lang.Boolean

bool/boolean

java.lang.Byte

byte

java.lang.Integer

int/integer

java.lang.Long

long

java.lang.Float

float

java.lang.Double

double

Each "HashMap" to be specified in "Key" and "Value" for an XTP cache must be associated as follows:

Refer to "5.4.14 Designing a Cache Access Application for Update" for information on the actual method of use.