| 136 | } |
| 137 | |
| 138 | std::shared_ptr<ColumnReader> RowGroupReader::ColumnWithExposeEncoding( |
| 139 | int i, ExposedEncoding encoding_to_expose) { |
| 140 | std::shared_ptr<ColumnReader> reader = Column(i); |
| 141 | |
| 142 | if (encoding_to_expose == ExposedEncoding::DICTIONARY && |
| 143 | IsColumnChunkFullyDictionaryEncoded(*metadata()->ColumnChunk(i))) { |
| 144 | // Set exposed encoding. |
| 145 | reader->SetExposedEncoding(encoding_to_expose); |
| 146 | } |
| 147 | |
| 148 | return reader; |
| 149 | } |
| 150 | |
| 151 | std::shared_ptr<internal::RecordReader> RowGroupReader::RecordReaderWithExposeEncoding( |
| 152 | int i, ExposedEncoding encoding_to_expose) { |