Skip to main content

instanceOfLong (Function)

Checks whether the parameter is an instance of Long or not.

Syntax

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

Query Parameters

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
argThe parameter to be checked.INT LONG DOUBLE FLOAT STRING BOOL OBJECTNoYes

Example 1

    insert into barStream
select instanceOfLong(value) as state
from fooStream;

This returns true if the value field format is long ex : 56456l.

Example 2

    insert into barStream
select instanceOfLong(switchState) as state
from fooStream;

If the switchState is True, this returns False because the value is a Boolean and not a Long.