| 44 | } |
| 45 | |
| 46 | std::shared_ptr<RecordBatch> ExampleRecordBatch() { |
| 47 | // We don't care about the actual data, since it's exported as raw buffer pointers |
| 48 | auto schema = ExampleSchema(); |
| 49 | int64_t length = 1000; |
| 50 | std::vector<std::shared_ptr<Array>> columns; |
| 51 | for (const auto& field : schema->fields()) { |
| 52 | auto array = *MakeArrayOfNull(field->type(), length); |
| 53 | columns.push_back(array); |
| 54 | } |
| 55 | return RecordBatch::Make(schema, length, columns); |
| 56 | } |
| 57 | |
| 58 | static void ExportType(benchmark::State& state) { // NOLINT non-const reference |
| 59 | struct ArrowSchema c_export; |
no test coverage detected