IBM Streams 4.3.0

Creating views

To be able to analyze streaming data in external programs, you must have your SPL application create at least one view.

Before you begin

Open your application in Streams Studio.

About this task

A view defines the set of attributes that can appear in a specific viewable data stream in an external program.

You can apply the view annotation to primitive and composite operators. The annotation can be applied to an operator that is also part of a parallel region. It cannot be applied to import or export operators.

Procedure

  1. On the operator where you want apply the view annotation, right-click the @ character.
  2. In the menu, select Add View.
  3. In the Create View window, define the parameters for the view. These elements are required:
    • A view name
    • A limit for buffering, either a time limit or a size limit
    • The maximum number of tuples to sample per second
    • The output port on which the view is to be created
    If you do not change or set these parameters, their respective defaults are used:
    • When to start buffering data. By default, data starts being buffered on first access.
    • Which attributes to include in the view. By default, all attributes are included.
    • A filter for the sampled tuples. By default, the view includes all sampled tuples.

    Specifying a description of the view is also optional.