Supported SPL data types for views, charts, and tables
Teracloud® Streams supports only certain Streams Processing Language (SPL) data types in views, charts, and tables.
SPL data types | Supported in: | |||
---|---|---|---|---|
Views | Charts: Y axis |
Charts: X axis |
Tables | |
blob | Yes1 | No | No | Yes1 |
boolean | Yes | Yes | Yes | Yes |
complex32, complex64 | Yes | No | No | Yes |
decimal32, decimal64, decimal128 | Yes | Yes | Yes | Yes |
enum | Yes | No | No | Yes |
float32, float64 | Yes | Yes | Yes | Yes |
int8, int16, int32, int64 | Yes | Yes | Yes | Yes |
list<T>, list<T>[n] | Yes | Yes2 | Yes2 | Yes3 |
map<K,V>, map<K,V>[n] | Yes | No | No | Yes4 |
optional<T>9 | Yes | No9 | No9 | Yes 9 |
rstring, rstring[n] | Yes | No | Yes | Yes |
set<T>, set<T>[n] | Yes | No | No | Yes3 |
timestamp | Yes | No | Yes5 | Yes5 |
Tuple<...> | Yes6 | No7 | No7 | No7 |
uint8, uint16, uint32, uint64 | Yes | Yes | Yes | Yes |
ustring | Yes | No | Yes | Yes |
xml | Yes | No | No | Yes8 |
Table notes:
- In the Streams Console, this data type is supported for tables and shown as a string representation of the first 16 bytes of the blob in hexadecimal format.
- For guidelines when you are configuring lists for use in charts, see Guidelines for using lists in summary and scrolling event charts.
- Lists and sets show the first entry in the
list and an ellipsis (for example, 1 ...).
The hover help shows the value for the column as a list of values
that are separated by a comma. For example, if the list is
[1, 2, 3, 4]
, the hover help looks like 1, 2, 3, 4. - Maps show the first entry in the map and an
ellipsis inside braces (for example,
{"1": "value", …}
). The hover help shows the first entry in the table and the key value pairs separated by a comma, for example,"1": "value", "2" : "value", "3" : "value", "4"
. - Timestamps on the X axis and in tables are
displayed as a
long
data type value. Use this data type when you need a range of values wider than the values that are provided by theint
data type. - Tuples are not supported, but the attributes within a nested tuple can be chosen. The attributes are expressed by using dotted notation down to the primitive type.
- Embedded attributes are supported. Tuples are not supported.
- XML data types are shown in tables as a string.
- For an optional type:
- If the underlying value of an optional type
optional<T>
is specified, the value is supported as shown in the table for typeT
. - If the optional type has a null value, tables in Streams
Console show
null
. - Charts in Streams Console do not show null values.
- If the underlying value of an optional type
Guidelines for using lists in summary and scrolling event charts
For lists in summary charts, where each event replaces the entire chart, use the following guidelines:- A numerical list can be configured to provide the Y-axis values. Each array element is plotted as a separate bar, one for each X attribute category. The list must be ordered. Colors can be assigned for each attribute and are used as the bar color for that attribute.
- An alphanumeric list can be configured to provide the X-axis labels. The list must be ordered and the index must match the order that is used in the values list.
- A numerical list can be configured for the Y-axis values. Each
array element is plotted as a separate bar or line. The list must
maintain the same order to ensure the bar or line is plotted continuously.
Colors cannot be assigned in this case as the array results in multiple lines per attribute for each event.
Optionally, another list can be configured that specifies the labels for each line to use as the legend for the chart. If not provided, the labels are the attribute name with the index (for example, "myArray[1]").
- If an alphanumeric list is configured for the X-axis labels, all the entries in the array are used to label each event.