| 320 | } |
| 321 | |
| 322 | static void BenchmarkReadArray(::benchmark::State& state, |
| 323 | const std::shared_ptr<Array>& array, bool nullable, |
| 324 | std::shared_ptr<WriterProperties> properties, |
| 325 | int64_t num_values = -1, int64_t total_bytes = -1) { |
| 326 | auto schema = ::arrow::schema({field("s", array->type(), nullable)}); |
| 327 | auto table = Table::Make(schema, {array}, array->length()); |
| 328 | |
| 329 | EXIT_NOT_OK(table->Validate()); |
| 330 | |
| 331 | BenchmarkReadTable(state, *table, num_values, total_bytes); |
| 332 | } |
| 333 | |
| 334 | static void BenchmarkReadArray(::benchmark::State& state, |
| 335 | const std::shared_ptr<Array>& array, bool nullable, |
no test coverage detected