| 119 | |
| 120 | template <SizeStatisticsLevel level, typename ArrowType, bool enable_page_index> |
| 121 | void BM_WritePrimitiveColumn(::benchmark::State& state) { |
| 122 | ::arrow::random::RandomArrayGenerator generator(/*seed=*/42); |
| 123 | auto type = std::make_shared<ArrowType>(); |
| 124 | auto array = generator.ArrayOf(type, kBenchmarkSize, kNullProbability); |
| 125 | auto table = ::arrow::Table::Make( |
| 126 | ::arrow::schema({::arrow::field("column", type, kNullProbability > 0)}), {array}); |
| 127 | WriteColumn(state, table, level, enable_page_index); |
| 128 | } |
| 129 | |
| 130 | template <SizeStatisticsLevel level, typename ArrowType, bool enable_page_index> |
| 131 | void BM_WriteListColumn(::benchmark::State& state) { |
nothing calls this directly
no test coverage detected