| 462 | } |
| 463 | |
| 464 | int64_t StreamReader::SkipColumns(int64_t num_columns_to_skip) { |
| 465 | int64_t num_columns_skipped = 0; |
| 466 | |
| 467 | if (!eof_) { |
| 468 | for (; (num_columns_to_skip > num_columns_skipped) && |
| 469 | static_cast<std::size_t>(column_index_) < nodes_.size(); |
| 470 | ++column_index_) { |
| 471 | SkipRowsInColumn(column_readers_[column_index_].get(), 1); |
| 472 | ++num_columns_skipped; |
| 473 | } |
| 474 | } |
| 475 | return num_columns_skipped; |
| 476 | } |
| 477 | |
| 478 | void StreamReader::SkipRowsInColumn(ColumnReader* reader, int64_t num_rows_to_skip) { |
| 479 | int64_t num_skipped = 0; |