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

Method ReadData

cpp/src/parquet/size_statistics_test.cc:219–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217 }
218
219 void ReadData() {
220 auto reader =
221 ParquetFileReader::Open(std::make_shared<::arrow::io::BufferReader>(buffer_));
222 auto metadata = reader->metadata();
223 for (int i = 0; i < metadata->num_row_groups(); ++i) {
224 int64_t num_rows = metadata->RowGroup(i)->num_rows();
225 auto row_group_reader = reader->RowGroup(i);
226 for (int j = 0; j < metadata->num_columns(); ++j) {
227 auto column_reader = row_group_reader->RecordReader(j);
228 ASSERT_EQ(column_reader->ReadRecords(num_rows + 1), num_rows);
229 }
230 }
231 }
232
233 void Reset() { buffer_.reset(); }
234

Callers

nothing calls this directly

Calls 7

RecordReaderMethod · 0.80
ReadRecordsMethod · 0.80
metadataMethod · 0.45
num_row_groupsMethod · 0.45
num_rowsMethod · 0.45
RowGroupMethod · 0.45
num_columnsMethod · 0.45

Tested by

no test coverage detected