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

Method ColumnNames

cpp/src/arrow/record_batch.cc:394–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394std::vector<std::string> RecordBatch::ColumnNames() const {
395 std::vector<std::string> names(num_columns());
396 for (int i = 0; i < num_columns(); ++i) {
397 names[i] = schema()->field(i)->name();
398 }
399 return names;
400}
401
402Result<std::shared_ptr<RecordBatch>> RecordBatch::RenameColumns(
403 const std::vector<std::string>& names) const {

Callers

nothing calls this directly

Calls 4

num_columnsFunction · 0.70
schemaFunction · 0.70
nameMethod · 0.45
fieldMethod · 0.45

Tested by

no test coverage detected