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

Method GetAll

cpp/src/arrow/type.cc:1856–1865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1854}
1855
1856Result<std::shared_ptr<Schema>> FieldPath::GetAll(const Schema& schm,
1857 const std::vector<FieldPath>& paths) {
1858 FieldVector fields;
1859 fields.reserve(paths.size());
1860 for (const auto& path : paths) {
1861 ARROW_ASSIGN_OR_RAISE(std::shared_ptr<Field> field, path.Get(schm));
1862 fields.push_back(std::move(field));
1863 }
1864 return schema(std::move(fields));
1865}
1866
1867Result<std::shared_ptr<Array>> FieldPath::Get(const RecordBatch& batch) const {
1868 // Deliberately calling `column_data` here because `RecordBatch::columns` is nontrivial

Callers 1

DoGetAllMethod · 0.80

Calls 6

push_backMethod · 0.80
schemaFunction · 0.70
ARROW_ASSIGN_OR_RAISEFunction · 0.50
reserveMethod · 0.45
sizeMethod · 0.45
GetMethod · 0.45

Tested by 1

DoGetAllMethod · 0.64