Operator Range37

Toolkits > com.ibm.streamsx.topology.pysamples 1.1.0 > com.ibm.streamsx.topology.pysamples.sources > Range37

Sample of a function as a source operator.

Python

@spl.source()
def Range37():
    """Sample of a function as a source operator."""
    if sys.version_info.major == 2:
        # zip behaviour differs on Python 2.7
        return iter(zip(range(37)))
    return zip(range(37))

Summary

Ports
This operator has 0 input ports and 1 output port.
Windowing
This operator does not accept any windowing configurations.
Parameters
This operator does not support parameters.
Metrics
This operator does not report any metrics.

Properties

Implementation
C++
Threading
Always - Operator always provides a single threaded execution context.

Output Ports

Assignments
This operator does not allow assignments to output attributes.
Ports (0)

Properties

Libraries

SPLPY header
Include Path: ../../opt/.splpy/include
Python libraries.
Command: ../../opt/.splpy/common/pyversion3.sh