1.3.11.36 Return Array Size

The Return Array Size processor accepts an array attribute, and returns the size of the array in a new attribute. The size of the array is the number of elements the array contains.

The output from this processor can be used in mathematical calculations and then applied to other processes for splitting the array or processing elements of the array.

The following table describes the configuration options:

Configuration Description

Inputs

Specify a single array attribute.

Options

None.

Outputs

Describes any data attribute or flag attribute outputs.

Data Attributes

The following data attributes are output:

  • ArraySize: a new attribute with a count of the number of elements in the array.

Flags

None.

The Return Array Size transformer presents no summary statistics on its processing.

In the Data view, the input array attribute is shown with the new array size attribute to its right.

Output Filters

None. All records input are output.

Example

In this example, Return Array Size has been used to return the size of an Array attribute:

Array ArraySize

{ Orbis, Cathedral Gardens}{Manchester}{Lancashire}{M4 3Pg}

4

{Capability Green,}{ Luton}{Bedfordshire}{LU1 3LU}

4

{ Bonds Lane, Garstang}{Preston}{ Lancs}{PR3 1RA}

4

{ Tempsford Hall,}{ Sandy}{}{SG19 2BD}

4