| 423 | |
| 424 | template <typename ParquetType> |
| 425 | static void BenchmarkReadNonDictColumn(::benchmark::State& state, bool nullable, |
| 426 | Encoding::type encoding) { |
| 427 | using c_type = typename ArrowType<ParquetType>::c_type; |
| 428 | |
| 429 | const std::vector<c_type> values(BENCHMARK_SIZE, static_cast<c_type>(42)); |
| 430 | std::shared_ptr<Table> table = |
| 431 | TableFromVector<ParquetType>(values, /*nullable=*/nullable, state.range(0)); |
| 432 | |
| 433 | auto properties = |
| 434 | WriterProperties::Builder().disable_dictionary()->encoding(encoding)->build(); |
| 435 | BenchmarkReadTable(state, *table, properties, table->num_rows(), |
| 436 | BytesForItems<ParquetType>(table->num_rows())); |
| 437 | } |
| 438 | |
| 439 | template <bool nullable, typename ParquetType> |
| 440 | static void BM_ReadColumnPlain(::benchmark::State& state) { |
nothing calls this directly
no test coverage detected