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

Class SelectiveIpcFileRecordBatchGenerator

cpp/src/arrow/ipc/reader.cc:1362–1375  ·  view source on GitHub ↗

A generator of record batches for use when reading a subset of columns from the file. All batches are yielded in order.

Source from the content-addressed store, hash-verified

1360///
1361/// All batches are yielded in order.
1362class 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
1377class RecordBatchFileReaderImpl : public RecordBatchFileReader {
1378 public:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected