| 2192 | } |
| 2193 | |
| 2194 | void FlushBuilder() { |
| 2195 | if (builder_.length() > 0) { |
| 2196 | std::shared_ptr<::arrow::Array> chunk; |
| 2197 | PARQUET_THROW_NOT_OK(builder_.Finish(&chunk)); |
| 2198 | result_chunks_.emplace_back(std::move(chunk)); |
| 2199 | |
| 2200 | // Also clears the dictionary memo table |
| 2201 | builder_.Reset(); |
| 2202 | } |
| 2203 | } |
| 2204 | |
| 2205 | void MaybeWriteNewDictionary() { |
| 2206 | if (this->new_dictionary_) { |
nothing calls this directly
no test coverage detected