Skip to main content
Version: Java (Groovy)

timeTable

The timeTable method creates a time table that adds new rows at a specified interval. The resulting table has one date-time column, Timestamp.

Syntax

timeTable(period)
timeTable(period, replayer)
timeTable(startTime, period)
timeTable(startTime, period, replayer)
timeTable(periodNanos)
timeTable(periodNanos, replayer)
timeTable(startTime, periodNanos)
timeTable(startTime, periodNanos, replayer)
timeTable(clock, startTime, periodNanos)

Parameters

ParameterTypeDescription
periodString

The time interval between new row additions.

replayerReplayerInterface

Data replayer.

startTimeDateTime

Start time for adding new rows.

periodNanoslong

The time interval between new rows in nanoseconds.

clockClock

The clock.

Returns

A ticking time table that adds new rows at the specified interval.

Example

The following example creates a time table that adds one new row every second.

result = timeTable("PT00:00:01")

The following example creates a time table that starts two hours prior to its creation.

startTime = minus(now(), parseDuration("PT2H"))

source = timeTable(startTime, "PT1S")

img