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

Method SetSchema

cpp/src/arrow/dataset/test_util_internal.h:493–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491 }
492
493 void SetSchema(std::vector<std::shared_ptr<Field>> fields) {
494 opts_->dataset_schema = schema(std::move(fields));
495 ASSERT_OK_AND_ASSIGN(auto projection,
496 ProjectionDescr::Default(*opts_->dataset_schema,
497 /*add_augmented_fields=*/true));
498 SetProjection(opts_.get(), std::move(projection));
499 }
500
501 void SetFilter(compute::Expression filter) {
502 ASSERT_OK_AND_ASSIGN(opts_->filter, filter.Bind(*opts_->dataset_schema));

Callers

nothing calls this directly

Calls 3

SetProjectionFunction · 0.85
schemaFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected