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

Method ReadData

cpp/src/parquet/size_statistics_test.cc:227–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225 }
226
227 void ReadData() {
228 auto reader =
229 ParquetFileReader::Open(std::make_shared<::arrow::io::BufferReader>(buffer_));
230 auto metadata = reader->metadata();
231 for (int i = 0; i < metadata->num_row_groups(); ++i) {
232 int64_t num_rows = metadata->RowGroup(i)->num_rows();
233 auto row_group_reader = reader->RowGroup(i);
234 for (int j = 0; j < metadata->num_columns(); ++j) {
235 auto column_reader = row_group_reader->RecordReader(j);
236 ASSERT_EQ(column_reader->ReadRecords(num_rows + 1), num_rows);
237 }
238 }
239 }
240
241 void Reset() { buffer_.reset(); }
242

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