Description:
Create a cluster channel and push data in another cluster channel into it.
Syntax:
channel(ch) |
Note:
The function creates a cluster channel as synchronously segmented as cluster channel ch, and pushes data in ch into it.
Parameters:
ch |
A cluster channel |
Return value:
A cluster channel
Example:
|
A |
|
1 |
=file("emp1.ctx":[1],"192.168.0.119:8281") |
|
2 |
=A1.open() |
Open a cluster table |
3 |
=A2.attach(table1) |
Retrieve cluster entity table table1 |
4 |
=A3.cursor() |
Return a cluster cursor |
5 |
=channel(A4) |
Create a channel, be ready to push data in A4’s cluster cursor into the new channel, and return a cluster channel |
6 |
=channel(A5) |
Create a channel, be ready to push data in A5’s cluster channel into the new channel, and return a cluster channel |
7 |
=A5.fetch() |
Keep data of the cluster channel |
8 |
=A6.fetch() |
Keep data of the cluster channel |
9 |
=A4.fetch() |
|
10 |
=A5.result() |
Get data from the cluster channel |
11 |
=A6.result() |
Get data from the cluster channel |