deephaven.TableManipulation.WindowCheck¶
Adds a Boolean column that is true if a Timestamp is within the specified window.
-
addTimeWindow
(table, timestampColumn, windowNanos, inWindowColumn)¶ Adds a Boolean column that is false when a timestamp column is older than windowNanos. If the timestamp is greater than or equal to the curent time - windowNanos, then the result column is true.
If the timestamp is null; the InWindow value is null.
The resultant table ticks whenever the input table ticks, or modifies a row when it passes out of the window.
- Parameters
table – (com.illumon.iris.db.tables.Table) - the input table
timestampColumn – (java.lang.String) - the timestamp column to monitor in table
windowNanos – (long) - how many nanoseconds in the past a timestamp can be before it is out of the window
inWindowColumn – (java.lang.String) - the name of the new Boolean column.
- Returns
(com.illumon.iris.db.tables.Table) a new table that contains an in-window Boolean column