T.dup(h)

Description:

Copy a local in-memory table onto nodes to create a duplicate cluster in-memory table.

Syntax:

T.dup(h)

Note:

The function copies local in-memory table T onto node or node sequence h to create a duplicate cluster in-memory table. The memory footprints will be cleaned up once T.close() is executed.

Parameter:

T

A local in-memory table

h

A node or a node sequence

Return value:

A duplicate cluster in-memory table

Example:

 

A

 

1

=demo.cursor("select EID,NAME,GENDER,SALARY from EMPLOYEE where EID<10")

 

2

=A1.memory()

Generate a local in-memory table.

3

=A2.dup("169.254.121.62:8281","192.168.31.165:8281")

Copy the local in-memory table into a duplicate cluster in-memory table.