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 ๐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
RowCache ๐Reader - Last row reader that returns the cached last rows for row group.
- 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.
- RowGroup
Last ๐RowReader
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. - RowGroup
Last ๐RowCached Reader - 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
indexfrom the primary key dictionary column. - push_
yielded_ ๐batches - Push last row into
yielded_batches.