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

Method ReadFromLocalFile

cpp/src/parquet/reader_test.cc:1111–1123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1109class TestJSONWithLocalFile : public ::testing::Test {
1110 public:
1111 static std::string ReadFromLocalFile(std::string_view local_file_name) {
1112 std::stringstream ss;
1113 // empty list means print all
1114 std::list<int> columns;
1115
1116 auto reader =
1117 ParquetFileReader::OpenFile(data_file(local_file_name.data()),
1118 /*memory_map=*/false, default_reader_properties());
1119 ParquetFilePrinter printer(reader.get());
1120 printer.JSONPrint(ss, columns, local_file_name.data());
1121
1122 return ss.str();
1123 }
1124};
1125
1126TEST_F(TestJSONWithLocalFile, JSONOutputWithStatistics) {

Callers

nothing calls this directly

Calls 7

OpenFileFunction · 0.85
JSONPrintMethod · 0.80
strMethod · 0.80
data_fileFunction · 0.70
dataMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected