ELASTIC stage v1.1

Pipelines v2.1

 

Purpose, Operands, Streams, Usage, Examples, Related

Home

 

Syntax

 
>>──ELASTIC──────────────────────────────────────────────────────────────────────────><

 

Purpose

 

Use the ELASTIC stage to prevent a stall in a multi-stream pipeline.

 

ELASTIC reads records from its primary input stream and writes them to its primary output stream; putting at least as many input records as necessary into a buffer to prevent a pipeline stall. ELASTIC reads input records whenever they become available and writes output records as they are consumed, while attempting to minimise the number of records in the buffer.

 

Operands

 

None.

 

Streams

 

The following streams are used by the ELASTIC stage:

 

Stream

 

Action

 

 

Primary input stream

ELASTIC reads records from its primary input stream.

Primary output stream

ELASTIC writes the records it reads from its primary input stream to its primary output stream.

 

Usage

 

1.

ELASTIC delays the records that it writes to a buffer.

 

2.

If the ELASTIC stage discovers that its primary output stream is not connected, the ELASTIC stage ends.

 

3.

ELASTIC can replace any BUFFER stage that is used for the prevention of a pipeline stall. However, use the BUFFER stage when you know that the complete file must be put in a buffer (for example, when another branch of the pipeline contains a SORT stage).

 

4.

ELASTIC verifies that its secondary output stream is not connected and then begins execution.

 

Examples

 

1.

Sorting a range of records

2.

Arranging text in vertical columns

3.

4.

 

Related

 

BUFFER, FANIN, FANINANY

 

History

 

Version

 

Date

Action

Description

Pipelines

1.1

24.12.2021

changed

Application-wide rewrite.

2.1

1.0

06.09.2007

created

First version.

1.0