| 337 | } |
| 338 | |
| 339 | std::string_view dictionaryLookup(const DictionaryEncoded& encoded, std::size_t row) { |
| 340 | uint32_t index = readIndex(encoded.indices.data(), row, encoded.index_bytes); |
| 341 | if (index >= encoded.dictionary.size()) { |
| 342 | return {}; |
| 343 | } |
| 344 | return encoded.dictionary[index]; |
| 345 | } |
| 346 | |
| 347 | // --------------------------------------------------------------------------- |
| 348 | // Packed bools |