Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-7338

[C++] Improve InMemoryDataSource to support generator instead of static list

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.17.0
    • C++

    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;
      }
      

      Attachments

        Activity

          People

            bkietz Ben Kietzman
            fsaintjacques Francois Saint-Jacques
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: