ReferenceDataObject

Reference data provides additional context to support advance stream processing use case


Understanding the structure and how to use this datatype will enable you to develop custom enrichments and analytics.

The ReferenceDataObject provides a generic data structure for reference data to be store and queried against

ReferenceDataObject

Joule provides a base implementation for the storage of a reference data element. The class extends the HashMap<String, Object> class and therefore has all the benefits of a Map with a couple of extensions.

Attributes

AttributeDescriptionType

key

Unique reference data key used when performing query lookups

Object

data

Custom data to be stored outside of the Map structure

Object

Key Methods

Key

To add new attributes to an event there are two methods which can be used. If a null value has been passed this will be converted to a String null value.

// Set lookup key
public void setKey(Object key);

// Get lookup key
public Object getKey();

Data

o add new attributes to an event there are two methods which can be used. If a null value has been passed this will be converted to a String null value.

// Set custom data object
public void setData(Object data);

// Get the custom data object
public Object getData();

Last updated