| 1257 | } |
| 1258 | |
| 1259 | Status WriteTable(const Table& table, int64_t max_chunksize) override { |
| 1260 | if (is_file_format_ && options_.unify_dictionaries) { |
| 1261 | ARROW_ASSIGN_OR_RAISE(auto unified_table, |
| 1262 | DictionaryUnifier::UnifyTable(table, options_.memory_pool)); |
| 1263 | return RecordBatchWriter::WriteTable(*unified_table, max_chunksize); |
| 1264 | } else { |
| 1265 | return RecordBatchWriter::WriteTable(table, max_chunksize); |
| 1266 | } |
| 1267 | } |
| 1268 | |
| 1269 | Status Close() override { |
| 1270 | RETURN_NOT_OK(CheckStarted()); |
no outgoing calls