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

Function Schema__field

r/src/schema.cpp:58–65  ·  view source on GitHub ↗

[[arrow::export]]

Source from the content-addressed store, hash-verified

56
57// [[arrow::export]]
58std::shared_ptr<arrow::Field> Schema__field(const std::shared_ptr<arrow::Schema>& s,
59 int i) {
60 if (i >= s->num_fields() || i < 0) {
61 cpp11::stop("Invalid field index for schema.");
62 }
63
64 return s->field(i);
65}
66
67// [[arrow::export]]
68std::shared_ptr<arrow::Schema> Schema__AddField(

Callers 1

_arrow_Schema__fieldFunction · 0.85

Calls 3

stopFunction · 0.85
num_fieldsMethod · 0.45
fieldMethod · 0.45

Tested by

no test coverage detected