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

Method RemoveField

cpp/src/arrow/type.cc:1428–1433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1426}
1427
1428Result<std::shared_ptr<StructType>> StructType::RemoveField(int i) const {
1429 if (i < 0 || i >= this->num_fields()) {
1430 return Status::Invalid("Invalid column index to remove field.");
1431 }
1432 return std::make_shared<StructType>(internal::DeleteVectorElement(children_, i));
1433}
1434
1435Result<std::shared_ptr<StructType>> StructType::SetField(
1436 int i, const std::shared_ptr<Field>& field) const {

Callers 5

type_test.ccFile · 0.80
TESTFunction · 0.80
MutateByKeyFunction · 0.80
Schema__RemoveFieldFunction · 0.80

Calls 3

num_fieldsMethod · 0.95
DeleteVectorElementFunction · 0.85
InvalidFunction · 0.70

Tested by 2

TESTFunction · 0.64
MutateByKeyFunction · 0.64