C Sequence API Sample

samples/native/sequences/api/c demonstrates how to construct and consume C iterator pipelines. Its source is split by operation so individual examples can be inspected without reading one monolithic program.

The sample covers creation and traversal, filtering, apply callbacks, sorting, top values, joins, intervals, correlation, grand/grid/grouped/hash/window aggregates, and a VWAP calculation.

Run

    target/bin/sequences-api-c

The build target can add a platform-specific executable suffix. The automated sample test runs this program with both plain and RLE sequence libraries.

Use the C Sequence Functions reference for exact contracts; sample code is intentionally task-oriented.