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

Method NextRowGroup

cpp/src/parquet/stream_reader.cc:408–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408void StreamReader::NextRowGroup() {
409 // Find next none-empty row group
410 while (row_group_index_ < file_metadata_->num_row_groups()) {
411 row_group_reader_ = file_reader_->RowGroup(row_group_index_);
412 ++row_group_index_;
413
414 column_readers_.resize(file_metadata_->num_columns());
415
416 for (int i = 0; i < file_metadata_->num_columns(); ++i) {
417 column_readers_[i] = row_group_reader_->Column(i);
418 }
419 if (column_readers_[0]->HasNext()) {
420 row_group_row_offset_ = current_row_;
421 return;
422 }
423 }
424 // No more row groups found.
425 SetEof();
426}
427
428void StreamReader::SetEof() {
429 // Do not reset file_metadata_ to ensure queries on the number of

Callers

nothing calls this directly

Calls 6

resizeMethod · 0.80
num_row_groupsMethod · 0.45
RowGroupMethod · 0.45
num_columnsMethod · 0.45
ColumnMethod · 0.45
HasNextMethod · 0.45

Tested by

no test coverage detected