Expand description
Utilities to read the last row of each time series.
Structsยง
- Batch
Buffer ๐ - Buffer that accumulates small
RecordBatches and tracks total row count. - Flat
Last ๐RowCache Reader - Iterates over cached flat last rows.
- Flat
Last ๐RowReader - 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.
- Flat
Last ๐Timestamp Selector - Selects the last-timestamp rows per primary key from flat
RecordBatch. - Flat
RowGroup ๐Last RowReader - Reads last rows from a flat format row group and caches the results.
- Last
KeyState ๐ - Last
RowReader ๐ - Reader to keep the last row for each time series. It assumes that batches from the input reader are
- Last
RowSelector - Common struct that selects only the last row of each time series.
Enumsยง
- Flat
RowGroup ๐Last RowCached Reader - 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
indexfrom the primary key dictionary column.