| 391 | } |
| 392 | |
| 393 | void ArrowWriter::ready(PointTableRef table) |
| 394 | { |
| 395 | std::vector<std::shared_ptr<arrow::Field>> fields; |
| 396 | for (auto& h : m_dimHandlers) |
| 397 | fields.push_back(h->field()); |
| 398 | |
| 399 | m_schema.reset(new arrow::Schema(fields)); |
| 400 | |
| 401 | if (m_formatType == arrowsupport::Parquet) |
| 402 | setupParquet(table); |
| 403 | else if (m_formatType == arrowsupport::Feather) |
| 404 | setupFeather(table); |
| 405 | } |
| 406 | |
| 407 | void ArrowWriter::write(const PointViewPtr view) |
| 408 | { |