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