RESULT SET

You can use the RESULT SET operator at the end of a data query to configure its output. It has many features to help you format your data and render it in a visualization.

This page discusses:

See Also
Data Query Views
SORT
Aggregation Functions
Partitioners
Expression Language

General Parameters

Parameter Description

Label

Specify the label to display below the operator type in the data query.

Note: This is the Result set name that you call in your visualizations when you select a data query from the Query field.
Description

Add a description to display as tooltip on hover over the operator icon.

Tip: It is useful to explain what the operator does, especially when you share the data query with other users.

Input name

Specify the name to give to the variable that contains the input data. The variable is then available when you define Expressions.

Enabled

Activates or deactivates the RESULT SET.

Predicate parameter

This data query parameter stores the filters applied to this RESULT SET. It allows you to use the same filters in another RESULT SET. For more information, see UC5 - Share the Result Set Filters.

Fields

Fields are the most basic elements in a RESULT SET. They contain a name and an expression, which extracts a value from each element of the input stream.

Parameter Description

Retrieve all fields from input

Retrieve all fields from the input (the data query operators defining the processing graph) automatically.

Synchronize fields with input

Once fields are retrieved, you can select this option to make sure that Data Perspective Studio updates the RESULT SET fields when you edit the configuration in preceding operators.

Note: When you edit a field, it moves to the list of Custom fields above.

Primary fields

Specify the fields to use as Primary fields in the Dimensions or Table View.

For example, if the RESULT SET receives a stream of persons, you can define a Field called fullname with the expression person.firstname + " " + person.lastname.

Dimensions

A Dimension is the combination of a class, a Field, and a partitioning function (to partition your dataset in groups). A dimension therefore makes groups of data out of data coming from a field.

Use the Collection policy parameter if the field has a collection type (Collection, List, or Map), to define if the RESULT SET must consider the collection as a unique element (List option) or as several elements (Each Element option).

For example, you can have a dimension referencing an age field and a partitioning function that partitions data in age ranges of 10 years. In that case, the dimension has several values: [0, 10[ [10, 20[ [20, 30[ ...

Important: The Cube View uses these dimensions.

Aggregations

An Aggregation is the equivalent of a measure. For example, the height of a bar in a bar chart, or the color of a cell in a heatmap.

Technically, an aggregation is a function that provides a value for each partition defined by dimensions.