ds_protocol_http_py_lib.dataset.incremental.settings

File: settings.py Region: ds_protocol_http_py_lib/dataset/incremental/settings

Incremental (shifting-scope) settings for HttpDataset reads.

Example

>>> IncrementalSettings(
...     param="updated_since",
...     location=InjectLocation.QUERY,
...     watermark_path="updated_at",
... )

Classes

IncrementalSettings

Instruction nest for incremental rules used by Paginate.

Module Contents

class ds_protocol_http_py_lib.dataset.incremental.settings.IncrementalSettings[source]

Bases: ds_common_serde_py_lib.Serializable

Instruction nest for incremental rules used by Paginate.

Instruction (stable): which request slot carries the lower bound and which response field advances the high-watermark.

State (runtime): the watermark value itself lives in checkpoint, owned by the caller. Paginate reads it on prepare and writes it on commit.

strategy: ds_protocol_http_py_lib.dataset.incremental.enums.IncrementalStrategy

Incremental ruleset. Declared explicitly; never inferred.

param: str

Name injected into the next run’s request (query, header, or body key).

location: ds_protocol_http_py_lib.utils.http.request.InjectLocation

Where the watermark is injected on the request.

watermark_path: str

Dotted path on each output row used to compute the new high-watermark.