| 237 | DataBuffer<int64_t> dictionaryOffset; |
| 238 | |
| 239 | void getValueByIndex(int64_t index, char*& valPtr, int64_t& length) { |
| 240 | if (index < 0 || static_cast<uint64_t>(index) + 1 >= dictionaryOffset.size()) { |
| 241 | throw std::out_of_range("index out of range."); |
| 242 | } |
| 243 | |
| 244 | int64_t* offsetPtr = dictionaryOffset.data(); |
| 245 | |
| 246 | valPtr = dictionaryBlob.data() + offsetPtr[index]; |
| 247 | length = offsetPtr[index + 1] - offsetPtr[index]; |
| 248 | } |
| 249 | }; |
| 250 | |
| 251 | /** |