Method

OmniPipelineSnapshotget_stream_next_time

Declaration

OmniTime
omni_pipeline_snapshot_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 t such that range scan_start..t does 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..t is devoid of materialized batches, then NST(S, scan_start) = TIME_MAX.

  • If scan_start is inside a materialized batch, then NST(S, scan_start) = scan_start.

stream_id must be included in the pipeline snapshot.

Parameters

stream_id

Type: OmniPhysStreamId

No description available.

The data is owned by the caller of the method.
scan_start

Type: OmniTime

No description available.

Return value

Type: OmniTime

No description available.