Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
The constructor should take a generator
// Some comments here class InMemoryDataSource : public DataSource { public: using Generator = std::function<Iterator<std::shared_ptr<RecordBatch>()>; InMemoryDataSource(Generator&& generator); // Convenience constructor to support a fixed list of RecordBatch InMemoryDataSource(std::shared_ptr<RecordBatch>); InMemoryDataSource(std::vector<std::shared_ptr<RecordBatch>>); private: Generator generator; }