Skip to content

Latest commit

 

History

History

intersect-list-operator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Intersect List operator

The Intersect List operator is a WireCloud operator that provides the ability to intersect two lists.

The input lists may have nested lists.

Build

Be sure to have installed Node.js in your system. For example, you can install it on Ubuntu and Debian running the following commands:

curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install nodejs
sudo apt-get install npm

If you want the last version of the operator, you should change to the develop branch:

git checkout develop

Install other npm dependencies by running: (need root because some libraries use applications, check package.json before to be sure)

sudo npm install

For build the operator you need download grunt:

sudo npm install -g grunt-cli

And now, you can use grunt:

grunt

If everything goes well, you will find a wgt file in the dist folder.

Settings

No settings needed for this operator to work.

Wiring

Input Endpoints

  • Original List A: List to be intersected with Original List B.
  • Original List B: List to be intersected with Original List A.

Output Endpoints

  • Intersected List: This endpoint provides a list with the items of Original List A that match the ones of Original List B.

Usage

When connected with two lists, calculates the intersection of both lists and pushes the result of the intersection to the "Intersected list" endpoint.

Reference

Copyright and License

Copyright (c) 2016 CoNWeT Licensed under the Apache2 license.