AS Clause

Introduces a CCL query to a derived element.

Syntax

[...]
	AS
		CCL Query
[...]

Components

AS

The AS clause introduces a CCL query to the rest of the statement.

CCL Query

The body of the CCL query.

Usage

The AS clause is used within derived elements (streams, windows, and delta streams) to provide a CCL query that determines the type of data processed by the derived element. Because of this, the AS clause is valid only with derived elements.

See the Queries section for information on structuring a query.

Example

This example shows the AS clause being used to specify the information selected by a derived stream.
CREATE STREAM win1 SCHEMA ( col1 string ) 
	AS 
		SELECT inputStream.col1 
		FROM inputStream;