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

Method Column

cpp/src/parquet/file_reader.cc:102–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 : contents_(std::move(contents)) {}
101
102std::shared_ptr<ColumnReader> RowGroupReader::Column(int i) {
103 if (i >= metadata()->num_columns()) {
104 std::stringstream ss;
105 ss << "Trying to read column index " << i << " but row group metadata has only "
106 << metadata()->num_columns() << " columns";
107 throw ParquetException(ss.str());
108 }
109 const ColumnDescriptor* descr = metadata()->schema()->Column(i);
110
111 std::unique_ptr<PageReader> page_reader = contents_->GetColumnPageReader(i);
112 return ColumnReader::Make(
113 descr, std::move(page_reader),
114 const_cast<ReaderProperties*>(contents_->properties())->memory_pool());
115}
116
117std::shared_ptr<internal::RecordReader> RowGroupReader::RecordReader(
118 int i, bool read_dictionary) {

Callers 3

RecordReaderMethod · 0.45
GetColumnPageReaderMethod · 0.45
ScanFileContentsFunction · 0.45

Calls 9

ParquetExceptionFunction · 0.85
strMethod · 0.80
MakeFunction · 0.70
metadataFunction · 0.50
num_columnsMethod · 0.45
schemaMethod · 0.45
GetColumnPageReaderMethod · 0.45
memory_poolMethod · 0.45
propertiesMethod · 0.45

Tested by

no test coverage detected