zone()

Read(306) Label: zone,

Here’s how to use zone() function.

zone( h )

Description:

Get data partitions from nodes.

Syntax:

zone(h)

Note:

The function gets the data partitions on node list h; return a sequence of integer sequences if parameter h is a sequence.

Parameters:

h

A node or a node sequence

Return value:

A sequence

Example:

zone("192.168.0.116:8281")

zone(["192.168.0.116:8281","192.168.0.129:8281"])

 

 

zone( i )

Description:

Number a memory data zone.

Syntax:

zone(i)

Note:

The function sets a number for the current memory data zone. It returns the existing memory data zone number when parameter i is absent.

Parameers:

i

Memory data zone number

Return value:

An integer or null

Example:

 

A

 

1

>zone(3)

Number the current memory data zone

2

=zone()

Return the existing memory data zone number, which is 3