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

Method GetFragmentsImpl

cpp/src/arrow/dataset/dataset.cc:283–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283Result<FragmentIterator> InMemoryDataset::GetFragmentsImpl(compute::Expression) {
284 auto schema = this->schema();
285
286 auto create_fragment =
287 [schema](std::shared_ptr<RecordBatch> batch) -> Result<std::shared_ptr<Fragment>> {
288 RETURN_NOT_OK(CheckProjectable(*schema, *batch->schema()));
289 return std::make_shared<InMemoryFragment>(RecordBatchVector{std::move(batch)});
290 };
291
292 auto batches_it = get_batches_->Get();
293 return MakeMaybeMapIterator(std::move(create_fragment), std::move(batches_it));
294}
295
296Result<std::shared_ptr<UnionDataset>> UnionDataset::Make(std::shared_ptr<Schema> schema,
297 DatasetVector children) {

Callers

nothing calls this directly

Calls 5

CheckProjectableFunction · 0.85
MakeMaybeMapIteratorFunction · 0.85
GetFragmentsFromDatasetsFunction · 0.85
schemaMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected