MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cpp-samples / PrintColumnNames

Function PrintColumnNames

bigquery/read/arrow/arrow_read.cc:63–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void PrintColumnNames(std::shared_ptr<arrow::RecordBatch> record_batch) {
64 // Print each column name for the record batch.
65 std::cout << std::setfill(' ') << std::setw(7) << "";
66 for (std::int64_t col = 0; col < record_batch->num_columns(); ++col) {
67 std::cout << std::left << std::setw(16) << record_batch->column_name(col);
68 }
69 std::cout << "\n";
70}
71
72void ProcessRecordBatch(std::shared_ptr<arrow::Schema> schema,
73 std::shared_ptr<arrow::RecordBatch> record_batch,

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected