Get dictionary. The dictionary should have been set by SetDict(). The dictionary is owned by the internal decoder and is destroyed when the reader is destroyed. This function is called only by ReadBatchWithDictionary() after dictionary is configured.
| 1098 | // owned by the internal decoder and is destroyed when the reader is destroyed. This |
| 1099 | // function is called only by ReadBatchWithDictionary() after dictionary is configured. |
| 1100 | void GetDictionary(const T** dictionary, int32_t* dictionary_length) { |
| 1101 | auto decoder = dynamic_cast<DictDecoder<DType>*>(this->current_decoder_.get()); |
| 1102 | decoder->GetDictionary(dictionary, dictionary_length); |
| 1103 | } |
| 1104 | |
| 1105 | // Read definition and repetition levels. Also return the number of definition levels |
| 1106 | // and number of values to read. This function is called before reading values. |