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

Method ScanBatchesAsync

cpp/src/arrow/dataset/file_test.cc:112–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 MockFileFormat() : FileFormat(/*default_fragment_scan_options=*/nullptr) {}
111
112 Result<RecordBatchGenerator> ScanBatchesAsync(
113 const std::shared_ptr<ScanOptions>& options,
114 const std::shared_ptr<FileFragment>& file) const override {
115 auto sch = schema({field("i32", int32())});
116 RecordBatchVector batches;
117 for (int i = 0; i < kNumBatches; i++) {
118 batches.push_back(ConstantArrayGenerator::Zeroes(kRowsPerBatch, sch));
119 }
120 return MakeVectorGenerator(std::move(batches));
121 }
122
123 protected:
124 std::string type_name() const override { return "mock"; }

Callers

nothing calls this directly

Calls 4

MakeVectorGeneratorFunction · 0.85
push_backMethod · 0.80
schemaFunction · 0.50
fieldFunction · 0.50

Tested by

no test coverage detected