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

Method ReadFromLocalFile

cpp/src/parquet/reader_test.cc:1096–1108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1094class TestJSONWithLocalFile : public ::testing::Test {
1095 public:
1096 static std::string ReadFromLocalFile(std::string_view local_file_name) {
1097 std::stringstream ss;
1098 // empty list means print all
1099 std::list<int> columns;
1100
1101 auto reader =
1102 ParquetFileReader::OpenFile(data_file(local_file_name.data()),
1103 /*memory_map=*/false, default_reader_properties());
1104 ParquetFilePrinter printer(reader.get());
1105 printer.JSONPrint(ss, columns, local_file_name.data());
1106
1107 return ss.str();
1108 }
1109};
1110
1111TEST_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