MCPcopy Create free account
hub / github.com/apache/arrow / PerfDataStream

Method PerfDataStream

cpp/src/arrow/flight/perf_server.cc:74–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72class 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

Callers

nothing calls this directly

Calls 2

MakeFunction · 0.50
lengthMethod · 0.45

Tested by

no test coverage detected