1

NEsperを使おうとしていて、リターンフィールドとして挿入してから時間がかかるステートメントを作成したいです。

例: Blah.win:time(1 分) から timeElapsed として avg((insertTime - now)) を選択します。

これは可能ですか?insertTime をハックすることはできますが、now 関数はありますか?

4

1 に答える 1

1

You can use current_timestamp. It returns the current time in milliseconds. For example select avg((insertTime - current_timestamp))

See there for more information: http://esper.codehaus.org/esper-2.1.0/doc/reference/en/html/functionreference.html

于 2012-05-27T13:40:08.303 に答える