| 37 | namespace benchmarks { |
| 38 | |
| 39 | std::shared_ptr<Int64Writer> BuildWriter(int64_t output_size, |
| 40 | const std::shared_ptr<ArrowOutputStream>& dst, |
| 41 | ColumnChunkMetaDataBuilder* metadata, |
| 42 | ColumnDescriptor* schema, |
| 43 | const WriterProperties* properties, |
| 44 | Compression::type codec) { |
| 45 | std::unique_ptr<PageWriter> pager = PageWriter::Open(dst, codec, metadata); |
| 46 | std::shared_ptr<ColumnWriter> writer = |
| 47 | ColumnWriter::Make(metadata, std::move(pager), properties); |
| 48 | return std::static_pointer_cast<Int64Writer>(writer); |
| 49 | } |
| 50 | |
| 51 | std::shared_ptr<ColumnDescriptor> Int64Schema(Repetition::type repetition) { |
| 52 | auto node = PrimitiveNode::Make("int64", repetition, Type::INT64); |
no test coverage detected