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

Method OneShotFragment

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

Source from the content-addressed store, hash-verified

346class OneShotFragment : public Fragment {
347 public:
348 OneShotFragment(std::shared_ptr<Schema> schema, RecordBatchIterator batch_it)
349 : Fragment(compute::literal(true), std::move(schema)),
350 batch_it_(std::move(batch_it)) {
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();

Callers

nothing calls this directly

Calls 1

literalFunction · 0.50

Tested by

no test coverage detected