| 362 | } |
| 363 | |
| 364 | static void BenchmarkReadArray(::benchmark::State& state, |
| 365 | const std::shared_ptr<Array>& array, bool nullable, |
| 366 | std::shared_ptr<WriterProperties> properties, |
| 367 | int64_t num_values = -1, int64_t total_bytes = -1) { |
| 368 | auto schema = ::arrow::schema({field("s", array->type(), nullable)}); |
| 369 | auto table = Table::Make(schema, {array}, array->length()); |
| 370 | |
| 371 | EXIT_NOT_OK(table->Validate()); |
| 372 | |
| 373 | BenchmarkReadTable(state, *table, num_values, total_bytes); |
| 374 | } |
| 375 | |
| 376 | static void BenchmarkReadArray(::benchmark::State& state, |
| 377 | const std::shared_ptr<Array>& array, bool nullable, |
no test coverage detected