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

Method fields

cpp/src/arrow/table.cc:252–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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