| 104 | |
| 105 | template <typename ParquetType> |
| 106 | std::shared_ptr<ColumnDescriptor> MakeSchema(Repetition::type repetition) { |
| 107 | auto node = PrimitiveNode::Make("int64", repetition, ParquetType::type_num); |
| 108 | return std::make_shared<ColumnDescriptor>(node, repetition != Repetition::REQUIRED, |
| 109 | repetition == Repetition::REPEATED); |
| 110 | } |
| 111 | |
| 112 | template <typename ParquetType> |
| 113 | int64_t BytesForItems(int64_t num_items) { |