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

Method EndRow

cpp/src/parquet/stream_reader.cc:392–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392void StreamReader::EndRow() {
393 if (!file_reader_) {
394 throw ParquetException("StreamReader not initialized");
395 }
396 if (static_cast<std::size_t>(column_index_) < nodes_.size()) {
397 throw ParquetException("Cannot end row with " + std::to_string(column_index_) +
398 " of " + std::to_string(nodes_.size()) + " columns read");
399 }
400 column_index_ = 0;
401 ++current_row_;
402
403 if (!column_readers_[0]->HasNext()) {
404 NextRowGroup();
405 }
406}
407
408void StreamReader::NextRowGroup() {
409 // Find next none-empty row group

Callers 1

stream_reader.ccFile · 0.45

Calls 4

ParquetExceptionFunction · 0.85
to_stringFunction · 0.85
sizeMethod · 0.45
HasNextMethod · 0.45

Tested by

no test coverage detected