| 92 | } |
| 93 | |
| 94 | void InitDescriptors(std::shared_ptr<ColumnDescriptor>& d1, |
| 95 | std::shared_ptr<ColumnDescriptor>& d2, |
| 96 | std::shared_ptr<ColumnDescriptor>& d3, int length) { |
| 97 | NodePtr type; |
| 98 | type = schema::PrimitiveNode::Make("c1", Repetition::REQUIRED, Type::type_num, |
| 99 | ConvertedType::NONE, length); |
| 100 | d1.reset(new ColumnDescriptor(type, 0, 0)); |
| 101 | type = schema::PrimitiveNode::Make("c2", Repetition::OPTIONAL, Type::type_num, |
| 102 | ConvertedType::NONE, length); |
| 103 | d2.reset(new ColumnDescriptor(type, 4, 0)); |
| 104 | type = schema::PrimitiveNode::Make("c3", Repetition::REPEATED, Type::type_num, |
| 105 | ConvertedType::NONE, length); |
| 106 | d3.reset(new ColumnDescriptor(type, 4, 2)); |
| 107 | } |
| 108 | |
| 109 | void ExecuteAll(int num_pages, int num_levels, int batch_size, int type_length, |
| 110 | Encoding::type encoding = Encoding::PLAIN) { |