CS.cursor()

Description:

Generate a multicursor using a sequence of cursors.

Syntax:

CS.cursor()

Note:

The function generates a multicursor using the sequence of cursors CS, where members must have the same structure. When members of CS are multicursors, a multilayer multicursor will be generated.

Parameter:

CS

A sequence of cursors.

Return value:

Multicursor

Example:

test_mcs.dfx is the deployment file for deploying remote node servers. The nodes are  "192.168.0.204"," 192.168.0.205","192.168.0.206"and port number is 8081. Below is content of the deployment file:

 

A

1

=connect("demo").cursor("select * from SCORES  where SUBJECT=?",arg1)

2

return A1

 

 

A

 

 

 

1

=callx("test_mcs.dfx",["English","Math","PE"];["192.168.0.204:8081"

,"192.168.0.205:8081","192.168.0.206:8081"])

The three parallel node servers return three cursors to form a sequence.

2

=A1.cursor()

Generate a multicursor using A1’s sequence of cursors.

3

=A2.fetch()

Fetch all records from A2’s multicursor.