Skip to main content

count (Aggregate Function)

Returns the count of all the events.

Syntax

    <LONG> count()
<LONG> count(<INT|LONG|DOUBLE|FLOAT|STRING|BOOL|OBJECT> arg)

QUERY PARAMETERS

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
argThis function accepts one parameter. It can belong to any one of the available types.INT LONG DOUBLE FLOAT STRING BOOL OBJECTYesYes

Example 1

    insert into barStream
select count() as count
from fooStream WINDOW TUMBLING_TIME(10 sec);

This returns the count of all the events for time batch in 10 seconds.