| 72 | class PerfDataStream : public FlightDataStream { |
| 73 | public: |
| 74 | PerfDataStream(bool verify, const int64_t start, const int64_t total_records, |
| 75 | const std::shared_ptr<Schema>& schema, const ArrayVector& arrays) |
| 76 | : start_(start), |
| 77 | verify_(verify), |
| 78 | batch_length_(arrays[0]->length()), |
| 79 | total_records_(total_records), |
| 80 | records_sent_(0), |
| 81 | schema_(schema), |
| 82 | mapper_(*schema), |
| 83 | arrays_(arrays) { |
| 84 | batch_ = RecordBatch::Make(schema, batch_length_, arrays_); |
| 85 | } |
| 86 | |
| 87 | std::shared_ptr<Schema> schema() override { return schema_; } |
| 88 | |