Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • aliases: The list new attribute names to use from now on. If the flag pairs is set, aliases will be interpretet as pairs of (old_name, new_name). See the examples below.
  • type: By default, each schema has the name of the source from which the data comes from (i.e. it is the name of the type that is processed by this operator). With this parameter the type (source) name can be changed. This is needed in the SASE operator. 
  • pairs: Optional boolean value that flags, if the given list of aliases should be interpretet as pairs of (old_name, new_name). Default value is false.

Example

renamed = rename({aliases = ['auction_id', 'bidder_id', 'another_id']}, projected)
(Renames the first attribute to auction_id, the second to bidder_id and the last to another_id.) 

renamedPairs = rename({aliases = ['auction_id', 'auction', 'bidder_id', 'bidder'], pairs = 'true'}, projected)
(Due the set flag pairs, the rename operator renames the attribute auction_id to auction and bidder_id to bidder.)

 

 

Code Block
themeEclipse
languagejavascript
titleRename Operator
linenumberstrue
// Renames the first attribute to auction_id, the second to bidder_id and the last to another_id.
output = RENAME({
                  aliases = ['auction_id', 'bidder_id', 'another_id']
                 }, input)

// Due the set flag pairs, the rename operator renames the attribute auction_id to auction and bidder_id to bidder.
output = rename({
                 aliases = ['auction_id', 'auction', 'bidder_id', 'bidder'], 
                 pairs = 'true'
                }, input)

...

route({predicates=[RelationalPredicate('price > 200'), RelationalPredicate('price > 300')], RelationalPredicate('price > 400')}, nexmark:bid2)

SELECT

Description

Parameter

Example

...

nexmark:bid2)

SELECT

Description

The select operator filter the incoming data stream according to the given predicate.

Parameter

  • predicate: The predicate to evaluate over each incoming tuple

Example

 

Code Block
themeEclipse
languagejavascript
titleSelect Operator
linenumberstrue
output = SELECT({ 
                 predicate=RelationalPredicate('price > 100') 
                },

...

 input)

 

Sender

Descripton

This operator can be used to publish processing results to multiple endpoints using different transport and application protocols.

...

UNION

Description

Parameter

none

Example

 

Code Block
themeEclipse
languagejavascript
titleUnion Operator
output = UNION(left, right)

 united = union(mapped, projected)

UNNEST

Description

The UnNest operator performs a split on the incoming tuple with a multi value attribute to create multiple tuples

...