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

Method GenerateColumnNames

cpp/src/arrow/csv/reader.cc:661–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

659 }
660
661 std::vector<std::string> GenerateColumnNames(int32_t num_cols) {
662 std::vector<std::string> res;
663 res.reserve(num_cols);
664 for (int32_t i = 0; i < num_cols; ++i) {
665 std::stringstream ss;
666 ss << "f" << i;
667 res.push_back(ss.str());
668 }
669 return res;
670 }
671
672 // Make conversion schema from options and parsed CSV header
673 Status MakeConversionSchema() {

Callers

nothing calls this directly

Calls 3

push_backMethod · 0.80
strMethod · 0.80
reserveMethod · 0.45

Tested by

no test coverage detected