| 625 | } |
| 626 | |
| 627 | ReaderImpl::ReaderImpl(std::shared_ptr<FileContents> contents, const ReaderOptions& opts, |
| 628 | uint64_t fileLength, uint64_t postscriptLength) |
| 629 | : contents_(std::move(contents)), |
| 630 | options_(opts), |
| 631 | fileLength_(fileLength), |
| 632 | postscriptLength_(postscriptLength), |
| 633 | footer_(contents_->footer.get()) { |
| 634 | isMetadataLoaded_ = false; |
| 635 | checkOrcVersion(); |
| 636 | numberOfStripes_ = static_cast<uint64_t>(footer_->stripes_size()); |
| 637 | contents_->schema = convertType(footer_->types(0), *footer_); |
| 638 | contents_->blockSize = getCompressionBlockSize(*contents_->postscript); |
| 639 | contents_->compression = convertCompressionKind(*contents_->postscript); |
| 640 | } |
| 641 | |
| 642 | std::string ReaderImpl::getSerializedFileTail() const { |
| 643 | proto::FileTail tail; |
nothing calls this directly
no test coverage detected