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

Method GetColumnPageReader

cpp/src/parquet/file_reader.cc:159–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159std::unique_ptr<PageReader> RowGroupReader::GetColumnPageReader(int i) {
160 if (i >= metadata()->num_columns()) {
161 std::stringstream ss;
162 ss << "Trying to read column index " << i << " but row group metadata has only "
163 << metadata()->num_columns() << " columns";
164 throw ParquetException(ss.str());
165 }
166 return contents_->GetColumnPageReader(i);
167}
168
169// Returns the rowgroup metadata
170const RowGroupMetaData* RowGroupReader::metadata() const { return contents_->metadata(); }

Callers 10

TEST_FFunction · 0.45
OpenExampleFileMethod · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
ColumnMethod · 0.45
RecordReaderMethod · 0.45
GetColumnParquetInfoFunction · 0.45
NextChunkMethod · 0.45
TEST_PFunction · 0.45
ReadPageIndexesMethod · 0.45

Calls 4

ParquetExceptionFunction · 0.85
strMethod · 0.80
metadataFunction · 0.50
num_columnsMethod · 0.45

Tested by 7

TEST_FFunction · 0.36
OpenExampleFileMethod · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
GetColumnParquetInfoFunction · 0.36
TEST_PFunction · 0.36
ReadPageIndexesMethod · 0.36