Apama Documentation : Developing Apama Applications : Developing Apama Applications in Event Modeler : Using Standard Blocks : The Utility blocks : Dictionary v2.0
Dictionary v2.0
As scenarios do not support a dictionary type, the Dictionary block addresses this potential requirement by providing an associative map of (string) keys and values. It provides facilities for adding, accessing, removing, as well as iterating across, elements within this map.
Parameters
Parameter
Description
key
Holds the key for a add / get operation.
value
Holds the value for a add / get operation.
Operations
Operation
Description
add
Adds the name-value pair stored in key and value to the dictionary. If the key already exists, the value will be overwritten with the new value.
get
Retrieves the value for the key stored in the key parameter and causes a result to be sent out on the output stream.
clear
Empties the dictionary.
remove
Removes the entry with the key stored in the key parameter from the dictionary - fails silently if key does not exist (removed key and value will be sent out on the result output feed).
next
For iterating through the dictionary - forces the next result to be output.
reset
Resets the iterator to the first entry in the dictionary.
Input feeds
This block has no input feeds.
Output feeds
Feed
Field
Description
result
key
The key for the entry.
value
The value of the entry.
found
true if the key was found in the dictionary, false otherwise.
size
Number of entries in the dictionary.
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback