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.
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 ๐Ÿ”’
LastRowCacheReader ๐Ÿ”’
Last row reader that returns the cached last rows for row group.
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.
RowGroupLastRowReader ๐Ÿ”’

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.
RowGroupLastRowCachedReader ๐Ÿ”’
Cached last row reader for specific row group. If the last rows for current row group are already cached, this reader returns the cached value. If cache misses, RowGroupLastRowReader reads last rows from row group and updates the cache upon finish.

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.
push_yielded_batches ๐Ÿ”’
Push last row into yielded_batches.