pseudo()

Read(24) Label: pseudo table,

Here’s how to use pseudo() functions.

T.pseudo()

Description:

Generate a pseudo table from an entity table.

Syntax:

T.pseudo ()

Note:

The function generates a pseudo table from entity table T.

Parameters:

T

An entity table

Return value:

A pseudo table

Example:

 

A

 

1

=file("emp.ctx")

 

2

=A1.open()

Open composite table emp.ctx and return it as an entity table

3

=A2.pseudo()

Generate a pseudo table from A2’s entity table

4

=A3.import()

Retrieve data from A3’s pseudo table and return it as a table sequence

 

T.pseudo()

Description:

Generate a cluster pseudo table from a cluster table.

Syntax:

T.pseudo()

Note:

The function generates a cluster pseudo table from cluster table T, which is computed in the same way as computing an ordinary pseudo table.

Parameters:

T

A cluster table

Return value:

A cluster pseudo table

Example:

 

A

 

1

=file("emp.ctx":1,["192.168.192.1:8281"])

Open a cluster file

2

=A1.open()

Generate a cluster table from A1’s cluster file

3

=A2.pseudo()

Generate a cluster pseudo table from A2’s cluster table

4

=A3.import()

Retrieve data of A3’s cluster pseudo table

T.pseudo( n )

Description:

Divide a pseudo table into segments and return a multi-threads pseudo table.

Syntax:

T.pseudo (n)

Note:

The function divides pseudo table T into segments, that is, it returns a new pseudo table on which n parallel threads has been applied.

Parameters:

T

A pseudo table

n

The number of segments/parallel threads

Return value:

A pseudo table

Example:

 

A

 

1

=file("emp.ctx")

 

2

=A1.open()

Open composite table emp.ctx and return it as an entity table

3

=A2.pseudo()

Generate a pseudo table from A2’s entity table

4

=A3.pseudo(3)

Generate a 3-thread pseudo table based on A3’s pseudo table

T.pseudo( T’ )

Description:

Align a pseudo table to segments of another pseudo table to divide the former and generate a new segmented pseudo table.

Syntax:

T.pseudo(T’)

Note:

The function aligns pseudo table T to segments of another pseudo table T’ to divide the former into multiple segments and returns a new segmented pseudo table.

Parameters:

T

A pseudo table

T’

A segmemted pseudo table

Return value:

A pseudo table

Example:

 

A

 

1

=file("emp.ctx")

 

2

=A1.open()

Open composite table emp.ctx and return it as an entity table

3

=A2.pseudo()

Generate a pseudo table from A2’s entity table

4

=A3.pseudo(3)

Generate a 3-thread pseudo table based on A3’s pseudo table

5

=file("emp2.ctx").open().pseudo()

Generate a pseudo table from entity table emp1.ctx

6

=A5.pseudo(A4)

Divide A5’s pseudo table according to the segmentation way of A4’s pseudo table and generate a new segmented pseudo table