C++ Native Functions: spl.eventtime

This page documents native functions that can be invoked from SPL, including the SPL interfaces that can be used to invoke each of the native functions.

Functions

<tuple T> public timestamp getEventTime(T t)

Get the event time of the specified tuple.

public int64 int64TicksFromTimestamp(timestamp ts, Sys.Resolution resolution)

Convert an SPL timestamp to a number of time units at a specified resolution.

public timestamp intervalEnd ( )

Get the end of the current timeInterval window.

public timestamp intervalStart ( )

Get the start of the current timeInterval window.

public uint64 paneIndex()

Returns the zero-based index of the trigger firing for the current timeInterval window.

public Sys.PaneTiming paneTiming()

Retrieves the PaneTiming of the current timeInterval window trigger.

public timestamp toTimestamp(int64 ticks, Sys.Resolution resolution)

Construct an SPL timestamp from a number of time units with the specified resolution.

public timestamp toTimestamp(uint64 ticks, Sys.Resolution resolution)

Construct an SPL timestamp from a number of time units with the specified resolution.

public uint64 uint64TicksFromTimestamp(timestamp ts, Sys.Resolution resolution)

Convert an SPL timestamp to a number of time units at a specified resolution.