A.push()

Read(488) Label: push, channel,

Description:

Push data in a given sequence into a channel.

Syntax:

A.push(chi ,…)

Note:

The function pushes data in sequence A into channel chi and returns the sequence itself. Unless a function that gets the final result set is attached to the channel, the final result set can’t be retrieved from it as the sequence is pushed in.

Parameters:

A

A sequence

chi

Channel

Return value:

Sequence

Example:

 

A

 

1

=demo.query("select * from SALES")

 

2

=channel()

Create a channel

3

=channel()

Create a channel

4

=A2.groups(SELLERID:SellerId;sum(AMOUNT):Amount)

Attach ch.groups() operation that gets the final result to A2’s channel

5

=A3.select(ORDERID<10)

A3 attaches ch.select() operation to A2’s channel

6

=A3.fetch()

Attach ch.fetch() function that gets the final result to A3’s channel to fetch and store the existing data

7

=A1.push(A2,A3)

Push data in A1’s sequence into A2’s channel and A3’s channel

8

=A2.result()

Get results from A2’s channel

9

=A3.result()

Get results from A3’s channel

Related functions:

ch.push()

cs.push()

channel()