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

Method fields

cpp/src/arrow/table.cc:251–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249Table::Table() : num_rows_(0) {}
250
251std::vector<std::shared_ptr<Field>> Table::fields() const {
252 std::vector<std::shared_ptr<Field>> result;
253 result.reserve(this->num_columns());
254 for (int i = 0; i < this->num_columns(); ++i) {
255 result.emplace_back(this->field(i));
256 }
257 return result;
258}
259
260std::shared_ptr<Table> Table::Make(std::shared_ptr<Schema> schema,
261 std::vector<std::shared_ptr<ChunkedArray>> columns,

Callers 15

test_fieldsMethod · 0.45
test_fieldsMethod · 0.45
test_fieldsMethod · 0.45
test_reader_backendMethod · 0.45
test_schemaMethod · 0.45
test_add_columnMethod · 0.45
test_remove_columnMethod · 0.45
test_schemaMethod · 0.45
test_add_columnMethod · 0.45
test_remove_columnMethod · 0.45

Calls 4

emplace_backMethod · 0.80
reserveMethod · 0.45
num_columnsMethod · 0.45
fieldMethod · 0.45

Tested by 15

test_fieldsMethod · 0.36
test_fieldsMethod · 0.36
test_fieldsMethod · 0.36
test_reader_backendMethod · 0.36
test_schemaMethod · 0.36
test_add_columnMethod · 0.36
test_remove_columnMethod · 0.36
test_schemaMethod · 0.36
test_add_columnMethod · 0.36
test_remove_columnMethod · 0.36