Supported SPL types

Toolkits > com.ibm.streamsx.topology 1.5.13.__dev__ > com.ibm.streamsx.topology.python > Creating SPL Operators from Python code > Supported SPL types

A limited set of SPL types are supported.

  • Primitive types
    • boolean - maps to Python Boolean
    • int8, int16, int32, int64 - maps to Python int
    • uint8, uint16, uint32, uint64 - maps to Python int
    • float32, float64 - maps to Python float
    • complex32, complex64 - maps to Python complex
    • rstring, ustring - maps to Python String - rstring values assume UTF-8 encoding
  • Collection types
    • list<T> where T is any supported type. Passed into Python as a list.
    • set<T> where T is any supported primitive type. Passed into Python as a set. T must be primitive to match Python's requirement that an element of a set is hashable.
    • map<K,V> where K is any supported primitive type and V is any supported type. Passed into Python as a dictionary. K must be primitive to match Python's requirement that a key of a map is hashable.