Virtual Method
OmniPipelineSnapshotget_stream_next_time
Declaration
OmniTime
get_stream_next_time (
OmniPipelineSnapshot* self,
OmniPhysStreamId* stream_id,
OmniTime scan_start
)
Description
Find the next batch in a given stream (NST).
Given a scan starting point scan_start, The next time of a stream
S, NST(S, scan_start) is defined as follows:
-
The maximum value of
tsuch that rangescan_start..tdoes not overlap with the currently materialized batch time ranges (fSTR ∩ mSTR). -
Or equivalently, the smallest member of
([t', INT64_MAX] ∩ fSTR ∩ mSTR) ∪ {INT64_MAX}
Here are some important cases:
-
If
scan_start..tis devoid of materialized batches, thenNST(S, scan_start) = TIME_MAX. -
If
scan_startis inside a materialized batch, thenNST(S, scan_start) = scan_start.
stream_id must be included in the pipeline snapshot.
Parameters
stream_id-
Type:
OmniPhysStreamIdNo description available.
The data is owned by the caller of the method. scan_start-
Type:
OmniTimeNo description available.
Return value
Type: OmniTime
No description available.