A generator of record batches for use when reading a subset of columns from the file. All batches are yielded in order.
| 1360 | /// |
| 1361 | /// All batches are yielded in order. |
| 1362 | class SelectiveIpcFileRecordBatchGenerator { |
| 1363 | public: |
| 1364 | using Item = std::shared_ptr<RecordBatch>; |
| 1365 | |
| 1366 | explicit SelectiveIpcFileRecordBatchGenerator( |
| 1367 | std::shared_ptr<RecordBatchFileReaderImpl> state) |
| 1368 | : state_(std::move(state)), index_(0) {} |
| 1369 | |
| 1370 | Future<Item> operator()(); |
| 1371 | |
| 1372 | private: |
| 1373 | std::shared_ptr<RecordBatchFileReaderImpl> state_; |
| 1374 | int index_; |
| 1375 | }; |
| 1376 | |
| 1377 | class RecordBatchFileReaderImpl : public RecordBatchFileReader { |
| 1378 | public: |
no outgoing calls
no test coverage detected