| 1329 | int64_t Close() override { return ColumnWriterImpl::Close(); } |
| 1330 | |
| 1331 | int64_t WriteBatch(int64_t num_values, const int16_t* def_levels, |
| 1332 | const int16_t* rep_levels, const T* values) override { |
| 1333 | if (ARROW_PREDICT_FALSE(properties_->content_defined_chunking_enabled())) { |
| 1334 | throw ParquetException( |
| 1335 | "Content-defined chunking is not supported in WriteBatch() or " |
| 1336 | "WriteBatchSpaced(), use WriteArrow() instead."); |
| 1337 | } |
| 1338 | return WriteBatchInternal(num_values, def_levels, rep_levels, values); |
| 1339 | } |
| 1340 | |
| 1341 | int64_t WriteBatchInternal(int64_t num_values, const int16_t* def_levels, |
| 1342 | const int16_t* rep_levels, const T* values) { |