Versions Compared

Key

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

...

Code Block
themeEclipse
languagejavascript
titleAggregate Operator
linenumberstrue
output = AGGREGATE({
                    group_by = ['bidder'], 
                    aggregations=[ ['MAX', 'price', 'max_price', 'double'] ]
                   }, input)

 

ASSUREHEARTBEAT

...

  • Predicate: The predicate
  • Type: Either EXISTS or NOT_EXISTS

 

Example

 

Code Block
themeEclipse
languagejavascript
titleDifference Operator
linenumberstrue
output = EXISTENCE({
                    type='EXISTS', predicate=RelationalPredicate('auction = auction_id') 
                    predicate=RelationalPredicate('auction = auction_id')
                   }, left, right)

output = EXISTENCE({
                    type='NOT_EXISTS', 
                    predicate=RelationalPredicate('auction = auction_id')}, left, right)
                   }, left, right)

 

FILESINK

Description

The operator can be used to dump the results of an operator to a file.

...

Code Block
themeEclipse
languagejavascript
titleMap Operator
linenumberstrue
output = MAP({
              expressions = ['auction_id * 5','sqrt(auction_id)']
             }, input)

 

SASE

Description

...

Code Block
themeEclipse
languagejavascript
titleMap Operator
linenumberstrue
output = PROJECT({
                  attributes = ['auction', 'bidder']
                 }, input)

 

PUNCTUATION

Description

...

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

Description

This operator can be used to route the elements in the stream to different further processing operators, depending on the predicate.

...