You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

UUID()

Returns a Universal Unique Identifier (UUID).

UUID Example
SELECT uuid() FROM stream
=> 64c82e4c-7314-45e2-8ee2-c7283f6dbb74

Eval(String s)

Evaluates arbitrary expressions.

Eval Example
SELECT eval("2+3") FROM stream
=> 5

Sleep(Number time)

Causes the currently executing operator to sleep for the specified number of milliseconds.

eIf(Expression e, Object true, Object false)

Returns the first Object if the expression evaluates to true else the second Object.

eIf Example
SELECT eif(1>0, "Greater than 0", "Lower or equal") FROM stream
=> Greater than 0

mem()

Returns the current used memory by the Java Virtual Machine in bytes

load()

Returns the current system load average for the last minute.

uptime()

returns the uptime of the Java Virtual Machine in milliseconds.

storedLine(String storage, Vector hierarchy, Vector row)

Returns the line stored in an associative storage given by the first parameter at the hierarchy given by the second parameter at the row given by the third parameter.

SELECT storedLine("Storage", [123, 456], [3]) FROM stream
=> [0,1,0,1,0]

storedValue(String storage, Vector hierarchy, Vector row)

 Returns the value stored in an associative storage given by the first parameter at the hierarchy given by the second parameter at the row given by the third parameter.

SELECT storedValue("Storage", [123, 456], [3,2]) FROM stream
=> 0

 

  • No labels