cs.memory( K,… )

Description:

Generate a cluster in-memory table from a cluster cursor.

Syntax:

cs.memory(K,…)

Note:

According to cluster cursor cs, the function generates a cluster in-memory table that distributed the same way as cs and whose key is K. If cs is a cluster multicursor, load a series of cursors in order.

Parameters:

K

The key; can be omitted

cs

A cluster cursor

Return value:

A cluster in-memory table

Example:

 

A

 

1

=file("test0.ctx","169.254.121.62:8281")

Open a cluster file

2

=A1.open()

Open a cluster table

3

=A2.attach(table)

Retrieve cluster table table

4

=A3.cursor(NAME,GENDER;EID<6)

Get NAME field and GENDER field where EID<6 from cluster table table and return them as a cursor

 5

=A4.memory(GENDER)

Generate a cluster in-memory table whose key is GENDER from a cluster cursor