Skip to main content

Module last_row

Module last_row 

Source
Expand description

Utilities to read the last row of each time series.

Structsยง

BatchBuffer ๐Ÿ”’
Buffer that accumulates small RecordBatches and tracks total row count.
FlatLastRowCacheReader ๐Ÿ”’
Iterates over cached flat last rows.
FlatLastRowReader ๐Ÿ”’
Reader that keeps only the last row of each time series from a flat RecordBatch stream. Assumes input is sorted, deduped, and contains no delete operations.
FlatLastTimestampSelector ๐Ÿ”’
Selects the last-timestamp rows per primary key from flat RecordBatch.
FlatRowGroupLastRowReader ๐Ÿ”’
Reads last rows from a flat format row group and caches the results.
LastKeyState ๐Ÿ”’
LastRowReader ๐Ÿ”’
Reader to keep the last row for each time series. It assumes that batches from the input reader are
LastRowSelector
Common struct that selects only the last row of each time series.

Enumsยง

FlatRowGroupLastRowCachedReader ๐Ÿ”’
Cached last row reader for flat format row group. If the last rows are already cached (as flat RecordBatch), returns cached values. Otherwise, reads from the row group, selects last rows, and updates the cache.

Functionsยง

last_timestamp_start ๐Ÿ”’
Finds the start index of rows sharing the last (maximum) timestamp within the range [range_start, range_end).
primary_key_bytes_at ๐Ÿ”’
Gets the primary key bytes at index from the primary key dictionary column.