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

Method CheckConsumed

cpp/src/arrow/dataset/scanner.cc:353–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351 DCHECK_NE(given_physical_schema_, nullptr);
352 }
353 Status CheckConsumed() {
354 if (!batch_it_) return Status::Invalid("OneShotFragment was already scanned");
355 return Status::OK();
356 }
357 Result<RecordBatchGenerator> ScanBatchesAsync(
358 const std::shared_ptr<ScanOptions>& options) override {
359 RETURN_NOT_OK(CheckConsumed());

Callers

nothing calls this directly

Calls 2

InvalidFunction · 0.50
OKFunction · 0.50

Tested by

no test coverage detected